CubicleApiError
The CubicleApiError class of @cubicle/sdk: its constructor, properties and methods.
The Cubicle API answered with an error status. code is the API's error code, such as
not_found, conflict or rate_limited, or http_<status> when the response carried
none. Rate limits and transient failures were already retried when this is raised.
Extends
Constructors
Constructor
new CubicleApiError(
status,
code,
message,
detail,
retryAfterSeconds
): CubicleApiError;Parameters
| Parameter | Type | Description |
|---|---|---|
status | number | The HTTP status, such as 404 or 409. |
code | string | - |
message | string | - |
detail | Record<string, unknown> | Extra fields from the API's error body. |
retryAfterSeconds | number | undefined | From Retry-After, for rate_limited, blocked and similar refusals. |
Returns
CubicleApiError

