Skip to content

ApiError

Defined in: src/ui/api-client.ts:35

Thrown by the client for non-2xx responses. Products subclass it (WebhooksApiError…).

  • Error
new ApiError(status, body): ApiError;

Defined in: src/ui/api-client.ts:41

Parameter Type
status number
body ApiErrorBody

ApiError

Error.constructor

Property Modifier Type Description Defined in
body readonly ApiErrorBody The parsed error body. src/ui/api-client.ts:39
status readonly number The HTTP status. src/ui/api-client.ts:37