type casting of error code to string