Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / index / NotFoundError

Class: NotFoundError

Defined in: errors/HttpError.ts:42

404 Not Found — no resource matches the request.

Extends

Constructors

Constructor

new NotFoundError(message?): NotFoundError

Defined in: errors/HttpError.ts:43

Parameters

message?

string = "Not Found"

Returns

NotFoundError

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