Errors¶
See the errors and retries guide for the retry policy and practical handling.
Bases: PennylaneError
The API answered with an error status code (4xx / 5xx).
Attributes:
| Name | Type | Description |
|---|---|---|
status_code |
int
|
HTTP status code of the response. |
error_code |
Machine-readable code from the body |
|
message |
Best-effort human-readable message ( |
|
details |
Optional structured details from the body |
|
body |
The parsed JSON body, or |
|
response |
The raw :class: |
.. warning::
response.request carries the original request, including the
Authorization header with your API token (and, for OAuth token
calls, the client secret in the body). Never log the request
verbatim; log status_code, error_code and message instead.
Bases: APIStatusError
429: rate limit exceeded (Company: 25 req/5s, Firm: 5 req/s).
Attributes:
| Name | Type | Description |
|---|---|---|
retry_after |
float | None
|
Seconds to wait before retrying, from the
|