def _check_response(self, response):
if response.status_code > <NUM_LIT> or response.status_code < <NUM_LIT:200>:<EOL><INDENT>log.debug("<STR_LIT>" % (response.status_code, str(response.headers)))<EOL>try:<EOL><INDENT>_json = response.json()<EOL>err_type = _json.get("<STR_LIT:error>", '<STR_LIT>')<EOL>if err_type == '<STR_LIT>':<EOL><INDENT>raise RecordNotFoundException(json.dumps(_json), response=response)<EOL><DEDENT>elif err_type == "<STR_LIT>":<EOL><INDENT>raise TooManyValuesException(json.dumps(_json), response=response)<EOL><DEDENT>else:<EOL><INDENT>raise APIException(json.dumps(_json), response=response)<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>response.raise_for_status()<EOL><DEDENT><DEDENT>
Check the response code returned by Zendesk. If it is outside the 200 range, raise an exception of the correct type.

:param response: requests Response object.