ϪfdZdZddlmZddlmZddlmZmZddl m Z m Z ddl m Z mZGdd e Zd ed ed ed efdZ dd eded e fdZ dd eded e fdZy)z* Utility implementations of L{IResource}. ) errorPagenotFound forbidden)cast)http) IRenderableIRequest) IResourceResource) renderElementtagscXeZdZdZdedededdffd Zdedefd Z d e dede fd Z xZ S) _ErrorPagea! L{_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: L{twisted.web.pages.errorPage} @ivar _code: An integer HTTP status code which will be used for the response. @ivar _brief: A short string which will be included in the response body as the page title. @ivar _detail: A longer string which will be included in the response body. codebriefdetailreturnNcLt|||_||_||_y)N)super__init___code_brief_detail)selfrrr __class__s 3/usr/lib/python3/dist-packages/twisted/web/pages.pyrz_ErrorPage.__init__(s#    " requestc|j|j|jddt|t t t jt jt j|jd|jt jt j|jt j|jS)z Respond to all requests with the given HTTP status code and an HTML document containing the explanatory strings. s content-typestext/html; charset=utf-8z - )setResponseCoder setHeaderr rrr htmlheadtitlerbodyh1pr)rrs rrenderz_ErrorPage.render.s  +/+FG   IIdjjDJJrCs   24455p+C++S+Z+0$:6 6 66&7V6 60366r