Represents a plain HTTP error response.

Hierarchy

  • Error
    • HttpError

Properties

code: number

HTTP status code of the server response.

name: string = "HttpError"
response: any

Server response object.

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

Type declaration

stackTraceLimit: number

Methods

  • Returns {
        code: number;
        error: boolean;
    }

    • code: number
    • error: boolean
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc