OptionalmaxOptionalbackoffOptionalretryHTTP status codes that trigger retry (e.g. 408, 429, 500, 502, 503, 504).
OptionalidempotentAllows retrying non-idempotent methods (POST/PATCH). An
Idempotency-Key header also enables retries. Default: false.
OptionalretryOptional predicate to decide whether a failed attempt should be retried. Called exactly once per failed attempt that could still be retried, with the zero-based attempt number:
false surfaces the error immediately without retrying. Not
called after the final attempt when no retries remain — there is
nothing left to decide.
Retries after the first attempt.
MaxRetriesExceededError.attemptsis total executions, i.e.maxRetries + 1.