Asked about Requests, status codes and headers

Which HTTP errors should you retry?

An answer that works

429 after a backoff, and 5xx and network timeouts, which are often transient. Not 4xx generally, because an identical request will fail identically, so retrying wastes time and money.

Reading an answer is not being able to give one. The section that teaches this is Requests, status codes and headers, 3 hours of HTTP & APIs.

Learn this properly