rateLimitRetryCallback

Optional callback invoked when an HTTP 429 rate-limit response is received.

Return a RateLimitRetryConfig to retry the request, or null to surface the failure immediately. When null (the default), 429 responses are never retried.

The retryCount parameter is 0-based: 0 on the first retry opportunity.

Example:

rateLimitRetryCallback = { retryCount ->
if (retryCount < 3) RateLimitRetryConfig(MaxRetries(3), MinDelaySeconds(1L))
else null
}