Ayzal AIAYZAL .AI
← Back to Knowledge Base
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

CodeMeaningAction
200SuccessRead verdict, proceed
401Bad API keyLog, alert on-call, fail open
429Quota exceededFail open + upgrade banner in your own app
5xxGuard degradedFail 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.