Skip to main content
Version: v10.0.0

isTemporaryFailure

By default a 4xx response other than 408 and 429 is permanent, and everything else is retried


Import
import { isTemporaryFailure } from "@hyper-fetch/db"

Parameters​

isTemporaryFailure(response: AnyResponse)
Parameters
NameTypeDescription
response
AnyResponse

Returns​

boolean