Skip to content

@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 ​

Constructors ​

Constructor ​

ts
new ZrExpressApiError(message, args): ZrExpressApiError;

Defined in: errors.ts:58

Parameters ​

ParameterType
messagestring
argsApiErrorArgs

Returns ​

ZrExpressApiError

Overrides ​

ZrExpressError.constructor

Properties ​

PropertyModifierTypeDescriptionDefined in
statusreadonlynumber-errors.ts:47
code?readonlystringMachine code from ProblemDetails.title, e.g. "ParcelErrors.NotFound".errors.ts:49
detail?readonlystringHuman message from ProblemDetails.detail.errors.ts:51
traceId?readonlystringSupport correlation id from the ProblemDetails traceId extension.errors.ts:53
problem?readonlyobject & objectRaw problem body when one was present (401/403 legitimately have none).errors.ts:55
requestIdreadonlyZrRequestId-errors.ts:56

Released under the MIT License. Not affiliated with ZR Express.