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 getChild 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 delEntity Undocumented
Method getChildForRequest Deprecated in favor of getChildForRequest.
Method getChildWithDefault Retrieve a static or dynamically generated child resource from me.
Method getDynamicEntity Undocumented
Method getStaticEntity Undocumented
Method listDynamicEntities Undocumented
Method listDynamicNames Undocumented
Method listEntities Undocumented
Method listNames Undocumented
Method listStaticEntities Undocumented
Method listStaticNames Undocumented
Method putChild Register a static child.
Method reallyPutEntity Undocumented
Method render_HEAD Default handling of HEAD method.
Class Variable allowedMethods Undocumented
Class Variable isLeaf 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
def __init__(self, code: int, brief: str, detail: str): (source)
def getChild(self, path: bytes, request: IRequest) -> Resource: (source)

Handle all requests for which _ErrorPage lacks a child by returning this error page.

Parameters
path:bytesA path segment.
request:IRequestHTTP request
Returns
ResourceUndocumented
def render(self, request: IRequest) -> object: (source)

Respond to all requests with the given HTTP status code and an HTML document containing the explanatory strings.

A short string which will be included in the response body as the page title.

An integer HTTP status code which will be used for the response.

A longer string which will be included in the response body.