Which API errors are safe to retry: one list, one formula, three exceptions
Rate-limit 429s, 5xx errors and timeouts can be retried automatically; quota-type 429s and 4xx request errors cannot. Honor Retry-After before any backoff formula, and think about double billing before retrying a timeout.
Q&A: 429 Too Many Requests — who exactly is rate-limiting you
A 429 can come from upstream limits, gateway limits, or a spend cap. Read Retry-After and the rate-limit headers first to find the bottleneck, then decide: wait, slow down, or top up.
Streaming through a gateway: three SSE dialects and the one boundary you cannot retry
Streaming fixes perceived latency, but after the first token a retry means double billing. Here are the three upstream event formats, what a gateway must translate, and how to resume a broken stream.
Four metrics that actually decide which AI gateway you pick
Reliability, billing transparency, rate-limit layering and traceability separate a forwarder from a production gateway. Each comes with a check you can run yourself — no marketing required.