exception documentation
class ServiceUnavailable(_RetryAfter): (source)
*503* `Service Unavailable` Status code you should return if a service is temporarily unavailable. :param retry_after: If given, set the ``Retry-After`` header to this value. May be an :class:`int` number of seconds or a :class:`~datetime.datetime`. .. versionchanged:: 1.0 Added ``retry_after`` parameter.
Class Variable | code |
Undocumented |
Class Variable | description |
Undocumented |
Inherited from _RetryAfter
:
Method | __init__ |
Undocumented |
Method | get |
Get a list of headers. |
Instance Variable | retry |
Undocumented |
Inherited from HTTPException
(via _RetryAfter
):
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. |
Instance Variable | response |
Undocumented |
Property | name |
The status name. |