WebKit.HTTPExceptions | index /usr/local/share/webware/WebKit/HTTPExceptions.py

`HTTP exceptions.
HTTPExceptions are for situations that are predicted by the HTTP spec.
Where the ``200 OK`` response is typical, a ``404 Not Found``
or ``301 Moved Temporarily`` response is not entirely unexpected.
`Application` catches all `HTTPException` exceptions (and subclasses of
HTTPException), and instead of being errors these are translated into responses.
In various places these can also be caught and changed, for instance
an `HTTPAuthenticationRequired` could be turned into a normal login page.`

Classes
`` |  | exceptions.Exception(exceptions.BaseException) HTTPException HTTPAuthenticationRequired HTTPAuthenticationRequired HTTPBadRequest HTTPConflict HTTPForbidden HTTPInsufficientStorage HTTPMethodNotAllowed HTTPMovedPermanently HTTPTemporaryRedirect HTTPTemporaryRedirect HTTPNotFound HTTPNotImplemented HTTPPreconditionFailed HTTPRequestTimeout HTTPServerError HTTPServiceUnavailable HTTPSessionExpired HTTPUnsupportedMediaType
class HTTPAuthenticationRequired(HTTPException)
`` | `HTTPExcecption "authentication required" subclass. HTTPAuthenticationRequired will usually cause the browser to open up an HTTP login box, and after getting login information from the user, the browser will resubmit the request. However, this should also trigger login pages in properly set up environments (though much code will not work this way). Browsers will usually not send authentication information unless they receive this response, even when other pages on the site have given 401 responses before. So when using this authentication every request will usually be doubled, once without authentication, once with.`
| Method resolution order: HTTPAuthenticationRequired HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods defined here: __init__(self, realm=None, *args) headers(self) Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
HTTPAuthorizationRequired = class HTTPAuthenticationRequired(HTTPException)
`` | `HTTPExcecption "authentication required" subclass. HTTPAuthenticationRequired will usually cause the browser to open up an HTTP login box, and after getting login information from the user, the browser will resubmit the request. However, this should also trigger login pages in properly set up environments (though much code will not work this way). Browsers will usually not send authentication information unless they receive this response, even when other pages on the site have given 401 responses before. So when using this authentication every request will usually be doubled, once without authentication, once with.`
| Method resolution order: HTTPAuthenticationRequired HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods defined here: __init__(self, realm=None, *args) headers(self) Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPBadRequest(HTTPException)
`` | `HTTPExcecption "bad request" subclass. When the browser sends an invalid request.`
| Method resolution order: HTTPBadRequest HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPConflict(HTTPException)
`` | `HTTPExcecption "conflict" subclass. When there's a locking conflict on this resource (in response to something like a PUT, not for most other conflicts). Mostly for WebDAV.`
| Method resolution order: HTTPConflict HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPException(exceptions.Exception)
`` | `HTTPException template class. Subclasses must define these variables (usually as class variables): `_code`: a tuple of the integer error code, and the short description that goes with it (like ``(200, "OK")``) `_description`: the long-winded description, to be presented in the response page. Or you can override description() if you want something more context-sensitive.`
| Method resolution order: HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods defined here: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors defined here: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPForbidden(HTTPException)
`` | `HTTPExcecption "forbidden" subclass. When access is not allowed to this resource. If the user is anonymous, and must be authenticated, then HTTPAuthenticationRequired is a preferable exception. If the user should not be able to get to this resource (at least through the path they did), or is authenticated and still doesn't have access, or no one is allowed to view this, then HTTPForbidden would be the proper response.`
| Method resolution order: HTTPForbidden HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPInsufficientStorage(HTTPException)
`` | `HTTPExcecption "insufficient storage" subclass. When there is not sufficient storage, usually in response to a PUT when there isn't enough disk space. Mostly for WebDAV.`
| Method resolution order: HTTPInsufficientStorage HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPMethodNotAllowed(HTTPException)
`` | `HTTPExcecption "method not allowed" subclass. When a method (like GET, PROPFIND, POST, etc) is not allowed on this resource (usually because it does not make sense, not because it is not permitted). Mostly for WebDAV.`
| Method resolution order: HTTPMethodNotAllowed HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPMovedPermanently(HTTPException)
`` | `HTTPExcecption "moved permanently" subclass. When a resource is permanently moved. The browser may remember this relocation, and later requests may skip requesting the original resource altogether.`
| Method resolution order: HTTPMovedPermanently HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods defined here: __init__(self, location=None, webkitLocation=None, *args) `Set destination. HTTPMovedPermanently needs a destination that you it should be directed to -- you can pass `location` *or* `webkitLocation` -- if you pass `webkitLocation` it will be relative to the WebKit base (the portion through the adapter).` description(self) headers(self) `We include a Location header.` location(self) `The location that we will be redirecting to.` Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPNotFound(HTTPException)
`` | `HTTPExcecption "not found" subclass. When the requested resource does not exist. To be more secretive, it is okay to return a 404 if access to the resource is not permitted (you are not required to use HTTPForbidden, though it makes it more clear why access was disallowed).`
| Method resolution order: HTTPNotFound HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods defined here: html(self) Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPNotImplemented(HTTPException)
`` | `HTTPExcecption "not implemented" subclass. When methods (like GET, POST, PUT, PROPFIND, etc) are not implemented for this resource.`
| Method resolution order: HTTPNotImplemented HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPPreconditionFailed(HTTPException)
`` | `HTTPExcecption "Precondition Failed" subclass. During compound, atomic operations, when a precondition for an early operation fail, then later operations in will fail with this code. Mostly for WebDAV.`
| Method resolution order: HTTPPreconditionFailed HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
HTTPRedirect = class HTTPTemporaryRedirect(HTTPMovedPermanently)
`` | `HTTPExcecption "temporary redirect" subclass. Like HTTPMovedPermanently, except the redirect is only valid for this request. Internally identical to HTTPMovedPermanently, except with a different response code. Browsers will check the server for each request to see where it's redirected to.`
| Method resolution order: HTTPTemporaryRedirect HTTPMovedPermanently HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPMovedPermanently: __init__(self, location=None, webkitLocation=None, *args) `Set destination. HTTPMovedPermanently needs a destination that you it should be directed to -- you can pass `location` *or* `webkitLocation` -- if you pass `webkitLocation` it will be relative to the WebKit base (the portion through the adapter).` description(self) headers(self) `We include a Location header.` location(self) `The location that we will be redirecting to.` Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPRequestTimeout(HTTPException)
`` | `HTTPExcecption "request timeout" subclass. The client did not produce a request within the time that the server was prepared to wait. The client may repeat the request without modifications at any later time.`
| Method resolution order: HTTPRequestTimeout HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPServerError(HTTPException)
`` | `HTTPExcecption "Server Error" subclass. The server encountered an unexpected condition which prevented it from fulfilling the request.`
| Method resolution order: HTTPServerError HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPServiceUnavailable(HTTPException)
`` | `HTTPExcecption "service unavailable" subclass. The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay.`
| Method resolution order: HTTPServiceUnavailable HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPSessionExpired(HTTPException)
`` | `HTTPExcecption "session expired" subclass. This is the same as HTTPAuthenticationRequired, but should be used in the situation when a session has expired.`
| Method resolution order: HTTPSessionExpired HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPTemporaryRedirect(HTTPMovedPermanently)
`` | `HTTPExcecption "temporary redirect" subclass. Like HTTPMovedPermanently, except the redirect is only valid for this request. Internally identical to HTTPMovedPermanently, except with a different response code. Browsers will check the server for each request to see where it's redirected to.`
| Method resolution order: HTTPTemporaryRedirect HTTPMovedPermanently HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPMovedPermanently: __init__(self, location=None, webkitLocation=None, *args) `Set destination. HTTPMovedPermanently needs a destination that you it should be directed to -- you can pass `location` *or* `webkitLocation` -- if you pass `webkitLocation` it will be relative to the WebKit base (the portion through the adapter).` description(self) headers(self) `We include a Location header.` location(self) `The location that we will be redirecting to.` Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class HTTPUnsupportedMediaType(HTTPException)
`` | `HTTPExcecption "unsupported media type" subclass. The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.`
| Method resolution order: HTTPUnsupportedMediaType HTTPException exceptions.Exception exceptions.BaseException __builtin__.object Methods inherited from HTTPException: __str__(self) code(self) `The integer code.` codeMessage(self) `The message (like ``Not Found``) that goes with the code.` description(self) `Error description. Possibly a plain text version of the error description, though usually just identical to `htDescription`.` headers(self) `Get headers. Additional headers that should be sent with the response, not including the Status header. For instance, the redirect exception adds a Location header.` htBody(self) `The HTML body of the page.` htDescription(self) `HTML error description. The HTML description of the error, for presentation to the browser user.` htTitle(self) `The title, but it may include HTML markup (like italics).` html(self) `The error page. The HTML page that should be sent with the error, usually a description of the problem.` setTransaction(self, trans) `Set transaction. When the exception is caught by `Application`, it tells the exception what the transaction is. This way you can resolve relative paths, or otherwise act in a manner sensitive of the context of the error.` title(self) `The title used in the HTML page.` Data descriptors inherited from HTTPException: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message