HTTP Error Codes
Complete reference for every HTTP status code the Guardrail API returns, with causes and resolution steps.
Request was evaluated successfully. Inspect risk_score and status in the response body for the safety verdict.
Authentication failed. The API key is missing, malformed, or has been revoked.
Your account credit balance is below $0.01 and cannot fund this request.
The request body is malformed or missing required fields. For compliance, we return a generic message without echoing any input.
You have exceeded the rate limit for your tier. Sandbox is limited to 10 requests per minute.
An unexpected error occurred on our infrastructure. The request was not evaluated or billed.
A transient infrastructure issue. Our AI processing layer may be restarting.
Handling errors in production
For non-critical AI outputs, we recommend a fail-open strategy: if Guardrail returns a 5xx error, pass the content through rather than breaking your user experience. For high-stakes scenarios (medical, legal, financial), implement fail-closed and serve a safe fallback message.