@staticmethod<EOL><INDENT>def parse(response):<DEDENT>
if response.status_code == <NUM_LIT>:<EOL><INDENT>try:<EOL><INDENT>msg = json.loads(response.content)['<STR_LIT:message>']<EOL><DEDENT>except (KeyError, ValueError):<EOL><INDENT>msg = '<STR_LIT>'<EOL><DEDENT>raise ApiError(msg)<EOL><DEDENT>return response<EOL>
check for errors