Mercurial > p > roundup > code
diff roundup/cgi/exceptions.py @ 8407:700424ba015c
Doc: add docstrings to http exceptions
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 10 Aug 2025 20:57:57 -0400 |
| parents | a1cffeef5f87 |
| children | e882a5d52ae5 |
line wrap: on
line diff
--- a/roundup/cgi/exceptions.py Sun Aug 10 20:35:53 2025 -0400 +++ b/roundup/cgi/exceptions.py Sun Aug 10 20:57:57 2025 -0400 @@ -15,22 +15,29 @@ class HTTPException(RoundupCGIException): + """Base exception for all HTTP error codes.""" pass class Redirect(HTTPException): + """HTTP 302 status code""" pass class NotFound(HTTPException): + """HTTP 404 status code unless self.response_code is set to + 400 prior to raising exception. + """ pass class NotModified(HTTPException): + """HTTP 304 status code""" pass class PreconditionFailed(HTTPException): + """HTTP 412 status code""" pass
