Options
All
  • Public
  • Public/Protected
  • All
Menu
description

This error will be thrown when the endpoint returns an HTTP error to the client

Hierarchy

  • Error
    • HttpResponseError

Index

Constructors

constructor

Properties

body

body: string

message

message: string

name

name: string = 'HttpResponse'

Optional stack

stack: string

status

status: STATUS_CODE

statusText

statusText: string

url

url: string

Static Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc