[Python-Dev] Adding status code constants to httplib (original) (raw)
Andrew Eland andrew at andreweland.org
Fri Sep 10 17:12:02 CEST 2004
- Previous message: [Python-Dev] Adding status code constants to httplib
- Next message: [Web-SIG] Re: [Python-Dev] Adding status code constants to httplib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip J. Eby wrote:
I would also put the statuses in a dictionary, such that:
statuscode[BADGATEWAY] = "Bad Gateway"
There's a table mapping status codes to messages on BaseHTTPRequestHandler at the moment. It could be moved into httplib to make it more publically visible.
-- Andrew
- Previous message: [Python-Dev] Adding status code constants to httplib
- Next message: [Web-SIG] Re: [Python-Dev] Adding status code constants to httplib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]