@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
| Parameter | Type |
|---|---|
message | string |
args | ApiErrorArgs |
Returns
ZrExpressForbiddenError
Inherited from
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
status | readonly | number | - | ZrExpressApiError.status | errors.ts:47 |
code? | readonly | string | Machine code from ProblemDetails.title, e.g. "ParcelErrors.NotFound". | ZrExpressApiError.code | errors.ts:49 |
detail? | readonly | string | Human message from ProblemDetails.detail. | ZrExpressApiError.detail | errors.ts:51 |
traceId? | readonly | string | Support correlation id from the ProblemDetails traceId extension. | ZrExpressApiError.traceId | errors.ts:53 |
problem? | readonly | object & object | Raw problem body when one was present (401/403 legitimately have none). | ZrExpressApiError.problem | errors.ts:55 |
requestId | readonly | ZrRequestId | - | ZrExpressApiError.requestId | errors.ts:56 |