Error thrown when getting HTTP responses

Hierarchy

  • Error
    • ResponseError

Constructors

Properties

cause?: unknown
details: ErrorDetail[]

Array of ErrorDetails

message: string
name: string
recipientDid: string

String DID of the recipient of the error

stack?: string
statusCode: number

HTTP status code of the error

url: string

URL where the error was thrown

prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void