def __is_json_error(self, status, headers):
content_header = headers.get('<STR_LIT>', '<STR_LIT>')<EOL>content_type, unused_params = cgi.parse_header(content_header)<EOL>return (status.startswith('<STR_LIT>') and<EOL>content_type.lower() in _ALL_JSON_CONTENT_TYPES)<EOL>
Determine if response is an error.

        Args:
          status: HTTP status code.
          headers: Dictionary of (lowercase) header name to value.

        Returns:
          True if the response was an error, else False.