method ErrorUtils.httpError
ErrorUtils.httpError(
url: string,
statusCode: number,
statusText: string,
): NetworkError

Creates a NetworkError for HTTP failures.

Parameters

url: string
  • The URL that failed
statusCode: number
  • HTTP status code
statusText: string
  • HTTP status text

Return Type

Usage

import { ErrorUtils } from ".";