an error that is thrown when the response status is not 2xx, or validateResponse returns false

Hierarchy

  • Error
    • HttpError

Constructors

Properties

body: null | Uint8Array = null
bodyText: null | string = null
cause?: unknown
message: string
name: string
response: Response
stack?: 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

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void