def _parse_content(response):
if response.status_code != <NUM_LIT:200>:<EOL><INDENT>raise ApiError(f'<STR_LIT>')<EOL><DEDENT>result = json.loads(response.content)<EOL>if not result['<STR_LIT>']:<EOL><INDENT>raise ApiError(f'<STR_LIT>')<EOL><DEDENT>return result<EOL>
parse the response body as JSON, raise on errors