class documentation
_ErrorPage
is a resource that responds to all requests with a particular (parameterized) HTTP status code and an HTML body containing some descriptive text. This is useful for rendering simple error pages.
See Also | |
twisted.web.pages.errorPage |
Method | __init__ |
Initialize. |
Method | get |
Handle all requests for which _ErrorPage lacks a child by returning this error page. |
Method | render |
Respond to all requests with the given HTTP status code and an HTML document containing the explanatory strings. |
Instance Variable | _brief |
A short string which will be included in the response body as the page title. |
Instance Variable | _code |
An integer HTTP status code which will be used for the response. |
Instance Variable | _detail |
A longer string which will be included in the response body. |
Inherited from Resource
:
Method | del |
Undocumented |
Method | get |
Deprecated in favor of getChildForRequest . |
Method | get |
Retrieve a static or dynamically generated child resource from me. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | put |
Register a static child. |
Method | really |
Undocumented |
Method | render_ |
Default handling of HEAD method. |
Class Variable | is |
Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource. |
Class Variable | server |
Undocumented |
Instance Variable | children |
Undocumented |
overrides
twisted.web.resource.Resource.getChild
Handle all requests for which _ErrorPage
lacks a child by returning this error page.
Parameters | |
path:bytes | A path segment. |
request:IRequest | HTTP request |
Returns | |
Resource | Undocumented |