API design · Multiple choice

Which response should a client retry automatically, after a delay?

easy Resilience

Options

Why

503 (like 502, 504 and 429 Too Many Requests) usually means a temporary condition, so retrying with backoff and jitter, honouring Retry-After, can succeed. Most other 4xx errors mean the request itself is wrong, and sending it again gets the same answer.

Review this in your daily deck All cards in API design