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.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClientRequestError( status, statusText, body): ClientRequestError;Defined in: client/src/client/transport.ts:28
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
status |
number |
statusText |
string |
body |
unknown |
Returns
Section titled “Returns”ClientRequestError
Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”readonly body: unknown;Defined in: client/src/client/transport.ts:26
status
Section titled “status”readonly status: number;Defined in: client/src/client/transport.ts:25