Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MethodNotAllowed

An implementation of a Method Not Allowed error.

export
class

MethodNotAllowed

extends

{HTTPError}

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

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