Source code for taimoe.platform.errors.service_unavailable_error

"""Service unavailable error — 503 UNAVAILABLE (also 502). Retryable."""

from __future__ import annotations

from ._base import TaimoeAPIError, _Retryable, _register_code, _register_status


[docs] @_register_status(502) @_register_status(503) @_register_code("UNAVAILABLE") class ServiceUnavailableError(TaimoeAPIError, _Retryable): """The service is temporarily unavailable. Safe to retry with backoff.""" default_code = "UNAVAILABLE"