Added status/error_code information in the message of the thrown exception. Corrected string comparison...