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.
Displayed 60%, actually 75%: fixing success rate by merging on request_id
One client call failed upstream, was retried, and succeeded — yet statistics counted it as one success and one failure. After the fix, site-wide failures dropped from 205 log rows to 145 requests.
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.