Fixes a bug with 500: unknown error no matter what error is thrown

response handler is looking for ex.code and ex.description, but all of these errors only had 'reason' attribute. This caused every error to be treated like a 500, unknown error.