A general HTTP error.

Hierarchy

  • Error
    • HttpError

Implements

Constructors

  • Parameters

    • statusCode: number
    • statusMessage: undefined | string
    • Optionalbody: string
    • OptionalretryAfter: null | string
    • OptionalcontentType: null | string
    • Optionalmessage: string
    • Optionalheaders: HttpHeaders

    Returns HttpError

Properties

body?: string
code: undefined | string

application error code, when available

contentType?: null | string
headers?: HttpHeaders
json: any

json error response

message: string
name: string
stack?: string
statusCode: number
statusMessage: undefined | string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

MMNEPVFCICPMFPCPTTAAATR