Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Error
    • default

Index

Constructors

  • new default(response: Response): default

Properties

message: string
name: string
response: Response

Reference to the HTTP Response object

stack?: string
status: number

The HTTP status code for this error. Note that this is the same as status, i.e. the code is available through any of these.

statusCode: number

The HTTP status code for this error

statusText: string

The HTTP status text corresponding to this error

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

  • toJSON(): { message: string; name: string; status: number; statusCode: number; statusText: string }
  • Returns { message: string; name: string; status: number; statusCode: number; statusText: string }

    • message: string
    • name: string
    • status: number
    • statusCode: number
    • statusText: string
  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc