@terminaldz/zrexpress-sdk / index / ZrExpressApiError
Class: ZrExpressApiError
Defined in: errors.ts:46
Any non-2xx HTTP response, mapped by status (SDK_SPEC §6).
Extends
Extended by
ZrExpressAuthErrorZrExpressForbiddenErrorZrExpressNotFoundErrorZrExpressValidationErrorZrExpressRateLimitErrorZrExpressServerError
Constructors
Constructor
ts
new ZrExpressApiError(message, args): ZrExpressApiError;Defined in: errors.ts:58
Parameters
| Parameter | Type |
|---|---|
message | string |
args | ApiErrorArgs |
Returns
ZrExpressApiError
Overrides
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
status | readonly | number | - | errors.ts:47 |
code? | readonly | string | Machine code from ProblemDetails.title, e.g. "ParcelErrors.NotFound". | errors.ts:49 |
detail? | readonly | string | Human message from ProblemDetails.detail. | errors.ts:51 |
traceId? | readonly | string | Support correlation id from the ProblemDetails traceId extension. | errors.ts:53 |
problem? | readonly | object & object | Raw problem body when one was present (401/403 legitimately have none). | errors.ts:55 |
requestId | readonly | ZrRequestId | - | errors.ts:56 |