It is not correct, nitin_math.
As program, dbaccess does exit() function on finish. Some convention in C programming states that programs which finish correctly returns 0. On the other hand, programs which causes errors should return less then 0.
This 255 is in fact -1 if you present it as one byte.
For "real" informix error you should parse output of sql script.
HTH