isClientError
isClientError(
error):boolean
Defined in: src/core.ts:286
A 4xx answer means “this request is wrong”, not “the dependency is down”: retrying won’t help and it says nothing
about the dependency’s health. Detected from a numeric status / statusCode (fetch wrappers, axios, AWS/Google SDKs).
408 and 429 are excluded: they are the dependency pushing back, so they behave like 5xx.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean