exception documentation
class _RetryAfter(HTTPException): (source)
Known subclasses: werkzeug.exceptions.ServiceUnavailable
, werkzeug.exceptions.TooManyRequests
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 |
Get a list of headers. |
Instance Variable | retry |
Undocumented |
Inherited from HTTPException
:
Method | __call__ |
Call the exception as WSGI application. |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | get |
Get the HTML body. |
Method | get |
Get the description. |
Method | get |
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)
¶
Undocumented