Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NotFound

An implementation of a Not Found error.

export
class

NotFound

extends

{HTTPError}

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new NotFound(message?: string): NotFound

Properties

code

code: number = 500

The status code of the response.

memberof

HTTPError

message

message: string = ERRORS.InternalError

The message associated with the response code.

memberof

HTTPError

Static message

message: string

Static name

name: string

Static Optional stack

stack: string

Methods

toResponse

  • Returns a response object suitable for serverless.

    memberof

    HTTPError

    Returns Response

Generated using TypeDoc