RaiCentral

Docs / Reference

Decisions and errors

Decision values, reason codes, error format and fail-closed behavior.

Decisions

DecisionExecute?What to do
ALLOWYesExecute, then report the result
DENYNoSurface human_message. Do not retry unchanged
REQUIRE_APPROVALNoWait and resend
MONITORNot by defaultReturned by observe-only integrations
UNAVAILABLENoRetry or abort

Reason codes

CodeMeaning
POLICY_DENIEDA rule denied the action
APPROVAL_REQUIREDA rule or platform control needs a person
RESOURCE_OUT_OF_SCOPEUnknown resource, or not declared for this version or delegation
BUDGET_EXCEEDEDA budget limit was reached
RUNTIME_SUSPENDEDIdentity suspended or a risk intervention applies
RUNTIME_IDENTITY_INACTIVEIdentity revoked or inactive
AGENT_VERSION_INELIGIBLESystem, agent or version not eligible to run
DATA_ACCESS_DENIEDA requested field is denied
RAI_UNAVAILABLENo decision could be made

HTTP errors

json
{
  "detail": {
    "error": "AUTHENTICATION_FAILED",
    "message": "Invalid runtime credential",
    "retryable": false,
    "correlation_id": null,
    "details": {}
  }
}
Status`error`
400INVALID_REQUEST
401AUTHENTICATION_FAILED
403Eligibility and policy errors
404SESSION_NOT_FOUND, INTEGRATION_NOT_FOUND, DECISION_NOT_FOUND
422CONTENT_DENIED, or a request that fails validation
429RATE_LIMITED
503RAI_UNAVAILABLE

Fail closed

  • Execute only when a decision says allowed.
  • Treat timeouts, network errors and unreadable responses as a refusal.
  • Do not loop on a denial or a pending approval.
  • Keep the integration's fail_closed setting on for consequential actions.