http.server.BaseHTTPRequestHandler.responses

responses

This attribute contains a mapping of error code integers to two-element tuples containing a short and long message. For example, {code: (shortmessage, longmessage)}. The shortmessage is usually used as the message key in an error response, and longmessage as the explain key. It is used by send_response_only() and send_error() methods.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.