This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: BaseHTTPServer.BaseHTTPRequestHandler.responses[405] has a small mistake
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: dalke, orsenthil
Priority: normal Keywords:

Created on 2009-10-19 23:40 by dalke, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg94262 - (view) Author: Andrew Dalke (dalke) * (Python committer) Date: 2009-10-19 23:40
BaseHTTPServer.BaseHTTPRequestHandler.responses contains a mapping from 
HTTP status codes to the 2-ple (shortmessage, longmessage), based on RFC 
2616.

The 2-ple for 405 is ('Method Not Allowed','Specified method is invalid 
for this server.'),

RFC 405 says "An origin server SHOULD return the status code 405 (Method 
Not Allowed) if the method is known by the origin server but not allowed 
for the requested resource.

I think the message should be "Specified method is invalid for this 
resource". That is, change "server" to "resource".
msg94263 - (view) Author: Andrew Dalke (dalke) * (Python committer) Date: 2009-10-20 00:10
Wasn't thinking. I'm not quoting from "RFC 405", I'm quoting the 405 
section from RFC 2616.
msg99719 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-02-22 11:03
Verified in the rfc. 
Fixed and committed in revision 78299 and merged into other branches.
History
Date User Action Args
2022-04-11 14:56:54adminsetgithub: 51421
2010-02-22 11:03:46orsenthilsetstatus: open -> closed

assignee: orsenthil
versions: + Python 2.6, Python 3.1, Python 2.7, Python 3.2
nosy: + orsenthil

messages: + msg99719
resolution: fixed
2009-10-20 00:10:47dalkesetmessages: + msg94263
2009-10-19 23:40:16dalkecreate