code: def _handle_request_error(self, orig_request, error, start_response):
      
      headers = [('Content-Type', 'application/json')]
      status_code = error.status_code()
      body = error.rest_error()
  
      response_status = '%d %s' % (status_code,
                                   httplib.responses.get(status_code,
                                                         'Unknown Error'))
      cors_handler = self._create_cors_handler(orig_request)
      return util.send_wsgi_response(response_status, headers, body,
                                     start_response, cors_handler=cors_handler)
docs: 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.