def _get_error_message(self, response):
error_message = '<STR_LIT>'<EOL>try:<EOL><INDENT>content = response.json()<EOL>error_message = content['<STR_LIT>'][<NUM_LIT:0>]['<STR_LIT:message>']<EOL><DEDENT>except TypeError:<EOL><INDENT>error_message = content['<STR_LIT>']<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>except (KeyError, IndexError):<EOL><INDENT>pass<EOL><DEDENT>return error_message<EOL>
Parse and return the first error message