Predicate suitable for RetryBackoffOptions.isRetryable: returns
true for transient HTTP 5xx status codes (502 / 503 / 504) including
errors wrapped via Error.cause. All other inputs return false.
Parameters
error: unknown
The rejection reason thrown by an HTTP call.
Returns boolean
Whether the error represents a transient server failure.
Predicate suitable for RetryBackoffOptions.isRetryable: returns
truefor transient HTTP 5xx status codes (502 / 503 / 504) including errors wrapped viaError.cause. All other inputs returnfalse.