Documentation
    Preparing search index...

    Class HttpRequestError

    The error that is thrown to indicate a failed HTTP request, usually indicated by status code.

    Hierarchy

    Index

    Constructors

    Properties

    cause?: unknown
    message: string
    name: string = "HttpRequestError"
    requestUrl?: string
    response?: Response
    responseBody?: string
    stack?: string
    statusCode?: number
    statusText?: string
    url?: 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