Retry only idempotent requests: GET and HEAD are safe, PUT and DELETE are idempotent by definition (though a DELETE retry may return 404 the second time, so treat that as success). Retry on network errors, 408, 429 and 502–504, with exponential backoff and jitter, honouring Retry-After. Never blindly retry a POST or PATCH that creates or changes state unless the API supports an idempotency key header, or you risk duplicate orders or payments. Don't retry 4xx validation or auth errors. Cap attempts at 2–3 so a struggling backend isn't hammered.
Checks idempotency awareness from the client side
Last updated 23 Nov 2026.