Skip to content

ClientRequestError

Defined in: client/src/client/transport.ts:24

Thrown when the server responds with a non-2xx status. Carries the parsed response body (when JSON) and the HTTP status for programmatic handling.

  • Error
new ClientRequestError(
status,
statusText,
body): ClientRequestError;

Defined in: client/src/client/transport.ts:28

Parameter Type
status number
statusText string
body unknown

ClientRequestError

Error.constructor
readonly body: unknown;

Defined in: client/src/client/transport.ts:26


readonly status: number;

Defined in: client/src/client/transport.ts:25