Skip to content

@terminaldz/zrexpress-sdk / index / ZrExpressForbiddenError

Class: ZrExpressForbiddenError ​

Defined in: errors.ts:74

403 — missing/invalid X-Tenant OR insufficient role; both arrive as bare 403.

Extends ​

Constructors ​

Constructor ​

ts
new ZrExpressForbiddenError(message, args): ZrExpressForbiddenError;

Defined in: errors.ts:58

Parameters ​

ParameterType
messagestring
argsApiErrorArgs

Returns ​

ZrExpressForbiddenError

Inherited from ​

ZrExpressApiError.constructor

Properties ​

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

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