Fixes a bug with 500: 'unknown error'

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.