exception documentation
class HttpStatusError(DatagraphsError):
Constructor: HttpStatusError(status_code, errors, message, retry_after_s)
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 |
The delay in seconds the API asked for before a retry (its Retry-After header), or None if it gave none. |
| Instance Variable | status |
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.