New submission from Craig Loftus <cr...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15025>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to