[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

Craig Loftus report at bugs.python.org
Thu Jun 7 13:15:42 CEST 2012


New submission from Craig Loftus <craig at wildknowledge.co.uk>:

Calling httplib.responses[httplib.UNPROCESSABLE_ENTITY] in 2.7, or http.client.responses[http.client.UNPROCESSABLE_ENTITY] raises "KeyError: 422".

The expected behaviour would be to return "Unprocessable Entity".

This is the specific issue that I have hit, but the same is true of all the WEBDAV status codes that constants are defined for.

----------
components: Library (Lib)
messages: 162470
nosy: craigloftus
priority: normal
severity: normal
status: open
title: httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)
type: behavior
versions: Python 2.7, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15025>
_______________________________________


More information about the Python-bugs-list mailing list