Error Codes & Retry Strategy

HTTPError CodeCauseRecommendation
400INVALID_PARAMInvalid parameterFix input and retry
401UNAUTHORIZEDAuthentication failedCheck or rotate API key
403PLAN_RESTRICTEDPlan limit reachedUpgrade plan or switch zone
429RATE_LIMITEDRate limit exceededUse exponential backoff
502/503UPSTREAM_UNAVAILABLEUpstream instabilityShort retries or switch zone

Recommended Retry Window

500ms, 1s, 2s, 4s
Retry only 429/502/503 for up to 4 attempts
Fail fast on 400/401/403 and raise alerts

Observability Metrics

  • Success rate (2xx ratio)
  • P95 latency
  • Error distribution per zone
  • Hourly quota burn rate
Next: Billing & Quotas