← Documentation

Error reference

The API is OpenAI-compatible, but validation and plan enforcement add ValGuard-specific statuses and `error.type` values. Use this page to map failures to fixes quickly.

Validation response headers

  • X-VG-Validation-Status: pass | warn | block | shadow | reasked_ok
  • X-VG-Request-Id: trace id for dashboards and logs
  • X-Request-Id: same id for compatibility
HTTPerror.typeMeaningRecommended action
400bad_requestRequest body or model payload is malformed.Validate JSON shape and required fields before retrying.
401unauthorizedAPI key is missing, revoked, or invalid.Use a valid `Authorization: Bearer vg_live_...` key from dashboard API keys.
403validation_blockA blocking validator rule failed for this response.Inspect `details` and tune agent rules, prompt, or payload format.
409conflictPlan or quota operation conflict (for example API key limits).Review plan limits in billing/settings and retry after adjusting configuration.
422validation_errorInput semantics fail validation for the selected route.Fix payload values and retry with valid request data.
429rate_limit_exceededOrganization has exceeded short-term request limits.Back off with retry + jitter and monitor plan throughput constraints.
429monthly_cap_exceededMonthly validation allowance has been reached (1 validation = 1 complete request checked against your active rules).Upgrade plan or enable overage billing before sending more traffic. See /pricing and /faq for tier limits and per-100k overage rates.
500internal_errorUnexpected server-side issue in the validation layer or upstream path.Retry with request id and check status page/logs for ongoing incidents.