diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-23 18:52:59 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-23 18:52:59 -0500 |
| commit | 99cfc081fa0498c1fa229124efb1669793e20227 (patch) | |
| tree | 788fd10b74852181bd153f480ccc0b1991a83a34 | |
| parent | e6f45b05eccc86f0f3a390748df26e34b8fe06c6 (diff) | |
| download | pyramid-99cfc081fa0498c1fa229124efb1669793e20227.tar.gz pyramid-99cfc081fa0498c1fa229124efb1669793e20227.tar.bz2 pyramid-99cfc081fa0498c1fa229124efb1669793e20227.zip | |
use WebOb docstring rather than copying it
| -rw-r--r-- | pyramid/httpexceptions.py | 66 |
1 files changed, 1 insertions, 65 deletions
diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py index 130c3ee8d..6d05f9475 100644 --- a/pyramid/httpexceptions.py +++ b/pyramid/httpexceptions.py @@ -1,68 +1,4 @@ -"""HTTP Exceptions. - -HTTP Exceptions can be returned from handlers and views (they are -valid :term:`Response` objects). - -All HTTP exceptions are sub-classes of HTTPException, with additional -sub-classes for each of the major types of HTTP response. For example, -all 200-class HTTP exceptions sub-class HTTPOk, which sub-classes -HTTPException. - -A status_map dict is also provided, which allows for key based access -to exception objects by the HTTP status code. - -The exceptions are ordered into a class hierarchy based on status code -divisions to allow for capturing of various types of HTTP exceptions -as well:: - - Exception - HTTPException - HTTPOk - * 200 - HTTPOk - * 201 - HTTPCreated - * 202 - HTTPAccepted - * 203 - HTTPNonAuthoritativeInformation - * 204 - HTTPNoContent - * 205 - HTTPResetContent - * 206 - HTTPPartialContent - HTTPRedirection - * 300 - HTTPMultipleChoices - * 301 - HTTPMovedPermanently - * 302 - HTTPFound - * 303 - HTTPSeeOther - * 304 - HTTPNotModified - * 305 - HTTPUseProxy - * 306 - Unused (not implemented, obviously) - * 307 - HTTPTemporaryRedirect - HTTPError - HTTPClientError - * 400 - HTTPBadRequest - * 401 - HTTPUnauthorized - * 402 - HTTPPaymentRequired - * 403 - HTTPForbidden - * 404 - HTTPNotFound - * 405 - HTTPMethodNotAllowed - * 406 - HTTPNotAcceptable - * 407 - HTTPProxyAuthenticationRequired - * 408 - HTTPRequestTimeout - * 409 - HTTPConflict - * 410 - HTTPGone - * 411 - HTTPLengthRequired - * 412 - HTTPPreconditionFailed - * 413 - HTTPRequestEntityTooLarge - * 414 - HTTPRequestURITooLong - * 415 - HTTPUnsupportedMediaType - * 416 - HTTPRequestRangeNotSatisfiable - * 417 - HTTPExpectationFailed - HTTPServerError - * 500 - HTTPInternalServerError - * 501 - HTTPNotImplemented - * 502 - HTTPBadGateway - * 503 - HTTPServiceUnavailable - * 504 - HTTPGatewayTimeout - * 505 - HTTPVersionNotSupported - -""" +from webob.exc import __doc__ from webob.exc import status_map # Parent classes |
