API Core - v1.5.0
    Preparing search index...

    Function isTransientServerError

    • 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.