exception documentation

Adds an optional ``retry_after`` parameter which will set the ``Retry-After`` header. May be an :class:`int` number of seconds or a :class:`~datetime.datetime`.

Method __init__ Undocumented
Method get_headers Get a list of headers.
Instance Variable retry_after Undocumented

Inherited from HTTPException:

Method __call__ Call the exception as WSGI application.
Method __repr__ Undocumented
Method __str__ Undocumented
Method get_body Get the HTML body.
Method get_description Get the description.
Method get_response Get a response object. If one was passed to the exception it's returned directly.
Class Variable code Undocumented
Instance Variable description Undocumented
Instance Variable response Undocumented
Property name The status name.
def __init__(self, description: t.Optional[str] = None, response: t.Optional[Response] = None, retry_after: t.Optional[t.Union[datetime, int]] = None): (source)
def get_headers(self, environ: t.Optional[WSGIEnvironment] = None, scope: t.Optional[dict] = None) -> t.List[t.Tuple[str, str]]: (source)

Get a list of headers.

retry_after = (source)

Undocumented