Skip to content

Class: ForbiddenError

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ForbiddenError

Class: ForbiddenError

Defined in: src/errors.ts:82

Forbidden error (HTTP 403).

The authenticated user does not have permission to perform the requested action.

Extends

Constructors

Constructor

new ForbiddenError(message, body, headers, errorCode?): ForbiddenError

Defined in: src/errors.ts:85

Parameters

message

string

body

unknown

headers

Headers

errorCode?

string

Returns

ForbiddenError

Overrides

ApiError.constructor

Properties

body

readonly body: unknown

Defined in: src/errors.ts:32

Parsed response body.

Inherited from

ApiError.body


cause?

optional cause: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from

ApiError.cause


errorCode

readonly errorCode: string | undefined

Defined in: src/errors.ts:30

Backend error code (from response body error field), if present.

Inherited from

ApiError.errorCode


headers

readonly headers: Headers

Defined in: src/errors.ts:34

Response headers.

Inherited from

ApiError.headers


message

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from

ApiError.message


name

name: string = 'ForbiddenError'

Defined in: src/errors.ts:83

Overrides

ApiError.name


stack?

optional stack: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from

ApiError.stack


status

readonly status: number

Defined in: src/errors.ts:28

HTTP status code.

Inherited from

ApiError.status