code: def respond(self, code):
          
  
          # TODO: respect encodings etc. in the request
          resp = HttpResponse(code, self.connection)
          resp.request = self
          if hasattr(self, 'version'):
              resp.version = self.version
          return resp
docs: Starts a response.
  
          ``code`` is an integer standing for standard HTTP status code.
  
          This method will automatically adjust the response to adapt to request
          parameters, such as "Accept-Encoding" and "TE".