exception documentation

Raised when the API responds with a non-success HTTP status.

Method __init__ Undocumented
Instance Variable errors The error details reported by the API (or the raw response text when the body carries no structured errors).
Instance Variable retry_after_s The delay in seconds the API asked for before a retry (its Retry-After header), or None if it gave none.
Instance Variable status_code The HTTP status code of the response.
def __init__(self, status_code: int, errors: list[Any], message: str, retry_after_s: float | None = None):

Undocumented

errors =

The error details reported by the API (or the raw response text when the body carries no structured errors).

retry_after_s =

The delay in seconds the API asked for before a retry (its Retry-After header), or None if it gave none.

status_code =

The HTTP status code of the response.