MandaitorForbiddenError
@mandaitor/sdk / MandaitorForbiddenError
Class: MandaitorForbiddenError
Defined in: @mandaitor/sdk/dist/errors.d.ts:90
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:92
Parameters
code
string
message
string
requestId?
string
Returns
MandaitorForbiddenError
Overrides
Properties
cause?
optionalcause?:unknown
Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
code
readonlycode:string
Defined in: @mandaitor/sdk/dist/errors.d.ts:47
Machine-readable error code from ErrorCodes
Inherited from
message
message:
string
Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
name
readonlyname:"MandaitorForbiddenError"="MandaitorForbiddenError"
Defined in: @mandaitor/sdk/dist/errors.d.ts:91
Overrides
requestId?
readonlyoptionalrequestId?:string
Defined in: @mandaitor/sdk/dist/errors.d.ts:49
Optional request ID for support debugging
Inherited from
stack?
optionalstack?:string
Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
status
readonlystatus:number
Defined in: @mandaitor/sdk/dist/errors.d.ts:45
HTTP status code (e.g. 400, 404, 500)
Inherited from
Accessors
isClientError
Get Signature
get isClientError():
boolean
Defined in: @mandaitor/sdk/dist/errors.d.ts:61
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:63
Returns true if this is a server error (5xx) — safe to retry
Returns
boolean
Inherited from
Methods
toJSON()
toJSON():
object
Defined in: @mandaitor/sdk/dist/errors.d.ts:65
Structured JSON representation for logging
Returns
object
code
code:
string
message
message:
string
name
name:
string
requestId
requestId:
string|undefined
status
status:
number