Options
All
  • Public
  • Public/Protected
  • All
Menu

An HTTP error. When thrown, replies with the HTTP status code specified and invokes associated error handlers.

Hierarchy

  • Error
    • Floop

Index

Constructors

Properties

Constructors

constructor

  • new Floop(code: number, message?: undefined | string): Floop
  • Creates a new Floop.

    Parameters

    • code: number

      The HTTP status code to throw.

    • Optional message: undefined | string

      The status message to send. Defaults to a generic message associated with each code.

    Returns Floop

Properties

Static Error

Error: ErrorConstructor

Static message

message: string

Static name

name: string

Static Optional stack

stack: undefined | string

Generated using TypeDoc