http: Add two new exceptions, one constant
authorMichael Hanselmann <hansmi@google.com>
Wed, 2 Dec 2009 16:36:44 +0000 (17:36 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 22 Jan 2010 14:17:18 +0000 (15:17 +0100)
commit580558a32c54823f702fd5feecabd7a87dc59c3d
treee322a797c5f4b2eea5eb4d124f8331fb19b54f2b
parent231db3a5eb4b9876acfe780ba0404e73a30b302f
http: Add two new exceptions, one constant

These will be useful in the future in case we don't enfore JSON encoding
anymore in the http.server module. The HTTP 1.1 RFC recommends error 415
(Unsupported Media Type) to be returned in case the client requests an
unsupported content-type. If the client doesn't send a “Content-Type” in
the request, a content-type of “application/octet-stream” is implied.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/http/__init__.py