Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / index / ForbiddenError

Class: ForbiddenError

Defined in: errors/HttpError.ts:36

403 Forbidden — authenticated, but not allowed to perform this action.

Extends

Constructors

Constructor

new ForbiddenError(message?): ForbiddenError

Defined in: errors/HttpError.ts:37

Parameters

message?

string = "Forbidden"

Returns

ForbiddenError

Overrides

HttpError.constructor

Properties

headers?

optional headers?: Record<string, string>

Defined in: errors/HttpError.ts:15

Inherited from

HttpError.headers


code

readonly code: string

Defined in: errors/ZerotalError.ts:18

Inherited from

HttpError.code


status

readonly status: number = 500

Defined in: errors/ZerotalError.ts:19

Inherited from

HttpError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: errors/ZerotalError.ts:20

Inherited from

HttpError.context