integrations
Error Handling and Fail-Open Strategy
What to do when the Guard API returns 429, 5xx, or times out
HTTP responses you can hit
| Code | Meaning | Action |
|---|---|---|
| 200 | Success | Read verdict, proceed |
| 401 | Bad API key | Log, alert on-call, fail open |
| 429 | Quota exceeded | Fail open + upgrade banner in your own app |
| 5xx | Guard degraded | Fail open immediately, do not retry |
Recommendation
Set a 5s timeout. On timeout, 5xx, or 429: allow the payment and set a flag on the order for async review. Never make your checkout depend on a third-party risk API being up.
Retry policy
Do NOT retry synchronously. If you want retries, queue the order and re-check asynchronously — but the user should never see a spinner while you retry the risk API.
