Why HTTPClientError and HTTPServerError have status code?

9 views
Skip to first unread message

Andrey Kurilin

unread,
Feb 25, 2014, 5:51:52 AM2/25/14
to paste...@googlegroups.com
HTTPRedirection, HTTPClientError and HTTPServerError are base exceptions, but HTTPRedirection have no own code[1] as HTTPClientError[2] and HTTPServerError[3] have it.
Can anybody explain to me why it so?

[1] - https://github.com/Pylons/webob/blob/master/webob/exc.py#L358
[2] - https://github.com/Pylons/webob/blob/master/webob/exc.py#L612
[3] - https://github.com/Pylons/webob/blob/master/webob/exc.py#L993
Reply all
Reply to author
Forward
0 new messages