Skip to main content
zerotal

Documentation


Documentation / zerotal / index / UnauthorizedError

Class: UnauthorizedError

Defined in: packages/core/src/errors/HttpError.ts:30

401 Unauthorized — authentication is required and has failed or is missing.

Extends

Constructors

Constructor

new UnauthorizedError(message?): UnauthorizedError

Defined in: packages/core/src/errors/HttpError.ts:31

Parameters

message?

string = "Unauthorized"

Returns

UnauthorizedError

Overrides

HttpError.constructor

Properties

headers?

optional headers?: Record<string, string>

Defined in: packages/core/src/errors/HttpError.ts:15

Inherited from

HttpError.headers


code

readonly code: string

Defined in: packages/core/src/errors/ZerotalError.ts:18

Inherited from

HttpError.code


status

readonly status: number = 500

Defined in: packages/core/src/errors/ZerotalError.ts:19

Inherited from

HttpError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: packages/core/src/errors/ZerotalError.ts:20

Inherited from

HttpError.context