Skip to main content

MandaitorForbiddenError

@mandaitor/sdk


@mandaitor/sdk / MandaitorForbiddenError

Class: MandaitorForbiddenError

Defined in: @mandaitor/sdk/dist/errors.d.ts:91

Thrown when the API returns a 403 Forbidden response.

Extends​

Constructors​

Constructor​

new MandaitorForbiddenError(code, message, requestId?): MandaitorForbiddenError

Defined in: @mandaitor/sdk/dist/errors.d.ts:93

Parameters​

code​

string

message​

string

requestId?​

string

Returns​

MandaitorForbiddenError

Overrides​

MandaitorApiError.constructor

Properties​

cause?​

optional cause?: unknown

Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from​

MandaitorApiError.cause


code​

readonly code: string

Defined in: @mandaitor/sdk/dist/errors.d.ts:48

Machine-readable error code from ErrorCodes

Inherited from​

MandaitorApiError.code


message​

message: string

Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from​

MandaitorApiError.message


name​

readonly name: "MandaitorForbiddenError" = "MandaitorForbiddenError"

Defined in: @mandaitor/sdk/dist/errors.d.ts:92

Overrides​

MandaitorApiError.name


requestId?​

readonly optional requestId?: string

Defined in: @mandaitor/sdk/dist/errors.d.ts:50

Optional request ID for support debugging

Inherited from​

MandaitorApiError.requestId


stack?​

optional stack?: string

Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from​

MandaitorApiError.stack


status​

readonly status: number

Defined in: @mandaitor/sdk/dist/errors.d.ts:46

HTTP status code (e.g. 400, 404, 500)

Inherited from​

MandaitorApiError.status

Accessors​

isClientError​

Get Signature​

get isClientError(): boolean

Defined in: @mandaitor/sdk/dist/errors.d.ts:62

Returns true if this is a client error (4xx)

Returns​

boolean

Inherited from​

MandaitorApiError.isClientError


isRetryable​

Get Signature​

get isRetryable(): boolean

Defined in: @mandaitor/sdk/dist/errors.d.ts:64

Returns true if this is a server error (5xx) — safe to retry

Returns​

boolean

Inherited from​

MandaitorApiError.isRetryable

Methods​

toJSON()​

toJSON(): object

Defined in: @mandaitor/sdk/dist/errors.d.ts:66

Structured JSON representation for logging

Returns​

object

code​

code: string

message​

message: string

name​

name: string

requestId​

requestId: string | undefined

status​

status: number

Inherited from​

MandaitorApiError.toJSON