Home | History | Annotate | Download | only in python2.7

Lines Matching refs:code

60 # |        ddd: the status code returned by the server, - if not available.
91 <p>Error code %(code)d.
93 <p>Error code explanation: %(code)s = %(explain)s.
119 code as well as to expose any misunderstandings I may have about
120 HTTP (so you don't need to read the code to figure out I'm wrong
141 the ASCII character with hex code xx).
162 1. One line giving the response code
168 The response code line has the form
173 <responsecode> is a 3-digit response code indicating success or
175 human-readable string explaining what the response code means.
321 # An error code has been sent, just exit
344 def send_error(self, code, message=None):
347 Arguments are the error code, and a detailed message.
349 response code.
358 short, long = self.responses[code]
364 self.log_error("code %d, message %s", code, message)
367 {'code': code, 'message': _quote_html(message), 'explain': explain})
368 self.send_response(code, message)
372 if self.command != 'HEAD' and code >= 200 and code not in (204, 304):
378 def send_response(self, code, message=None):
379 """Send the response header and log the response code.
385 self.log_request(code)
387 if code in self.responses:
388 message = self.responses[code][0]
393 (self.protocol_version, code, message))
394 # print (self.protocol_version, code, message)
414 def log_request(self, code='-', size='-'):
422 self.requestline, str(code), str(size))
510 # form {code: (shortmessage, longmessage)}.