Represents a plain HTTP error response.

Hierarchy (view full)

Properties

code: number

HTTP status code of the server response.

isSafeToRetry: null | boolean

Indicates whether the request that caused this error can be safely retried.

name: string = "HttpError"
request: Request

Fetch request object.

response: ProcessedResponse<any>

Server response object.

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

  • Returns {
        code: number;
        error: boolean;
        errorMessage: string;
    }

    • code: number
    • error: boolean
    • errorMessage: string