CarmenAPIError
Class An error returned by a Carmen Cloud API: a non-2xx HTTP response.
Properties
| Name | Type | Description |
|---|---|---|
readonly body? | unknown | The parsed response body, if any. |
readonly status | number | The HTTP status code. |
Members
constructor
(message: string, status: number, body?: unknown) => CarmenAPIError
Parameters
| Name | Type | Description |
|---|---|---|
message | string | The error message (the API's message or error_description when present). |
status | number | The HTTP status code. |
body? | unknown | The parsed response body, if any. |
Source: errors.ts:19