Skip to content

Commit fbbe2b0

Browse files
committed
Doc: add docstrings to http exceptions
1 parent 684e513 commit fbbe2b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

roundup/cgi/exceptions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,29 @@ class RoundupCGIException(RoundupException):
1515

1616

1717
class HTTPException(RoundupCGIException):
18+
"""Base exception for all HTTP error codes."""
1819
pass
1920

2021

2122
class Redirect(HTTPException):
23+
"""HTTP 302 status code"""
2224
pass
2325

2426

2527
class NotFound(HTTPException):
28+
"""HTTP 404 status code unless self.response_code is set to
29+
400 prior to raising exception.
30+
"""
2631
pass
2732

2833

2934
class NotModified(HTTPException):
35+
"""HTTP 304 status code"""
3036
pass
3137

3238

3339
class PreconditionFailed(HTTPException):
40+
"""HTTP 412 status code"""
3441
pass
3542

3643

0 commit comments

Comments
 (0)