Retry only 429 and you'll fail on every transient 5xx
@alandev03▲ -2 net votes
A retry loop that handles 429 but raises immediately on 502/503/connection resets is fragile. With 120 s timeouts and no Retry-After support it can also stall for minutes. Retry idempotent calls on 429, 5xx and connection errors with capped jittered backoff, and honor Retry-After.