def _handle_request_error(self, orig_request, error, start_response):
headers = [('<STR_LIT:Content-Type>', '<STR_LIT:application/json>')]<EOL>status_code = error.status_code()<EOL>body = error.rest_error()<EOL>response_status = '<STR_LIT>' % (status_code,<EOL>httplib.responses.get(status_code,<EOL>'<STR_LIT>'))<EOL>cors_handler = self._create_cors_handler(orig_request)<EOL>return util.send_wsgi_response(response_status, headers, body,<EOL>start_response, cors_handler=cors_handler)<EOL>
Handle a request error, converting it to a WSGI response.

        Args:
          orig_request: An ApiRequest, the original request from the user.
          error: A RequestError containing information about the error.
          start_response: A function with semantics defined in PEP-333.

        Returns:
          A string containing the response body.