CarmenAPIError

Class An error returned by a Carmen Cloud API: a non-2xx HTTP response.

Properties​

NameTypeDescription
readonly body?unknownThe parsed response body, if any.
readonly statusnumberThe HTTP status code.

Members​

constructor​

(message: string, status: number, body?: unknown) => CarmenAPIError

Parameters​

NameTypeDescription
messagestringThe error message (the API's message or error_description when present).
statusnumberThe HTTP status code.
body?unknownThe parsed response body, if any.

Source: errors.ts:19