From 99cfc081fa0498c1fa229124efb1669793e20227 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 23 Dec 2010 18:52:59 -0500 Subject: use WebOb docstring rather than copying it --- pyramid/httpexceptions.py | 66 +---------------------------------------------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3