def _http_error_handler(http_error):
message = str(http_error)<EOL>error_code = None<EOL>if '<STR_LIT>' in http_error.respheader:<EOL><INDENT>error_code = http_error.respheader['<STR_LIT>']<EOL>message += '<STR_LIT>' + error_code<EOL><DEDENT>if http_error.respbody is not None:<EOL><INDENT>message += '<STR_LIT:\n>' + http_error.respbody.decode('<STR_LIT>')<EOL><DEDENT>ex = AzureHttpError(message, http_error.status)<EOL>ex.error_code = error_code<EOL>raise ex<EOL>
Simple error handler for azure.