GuidesResources
Error and reason codes
Decision reason codes, and where to find HTTP error codes.
Two kinds of codes exist. Reason codes explain a successful decision (allow, deny or approval required). Error codes describe failed requests and are listed in Errors.
Decision reason codes
| Code | Decision | Meaning |
|---|---|---|
policy_invalid | deny | The live policy snapshot has invalid rule fields or conditions. Evaluation fails closed; repair and republish the policy. |
policy_allowed | allow | A matching allow rule permitted the action and no deny or approval rule applied. |
approval_redeemed | allow | An approved approval was redeemed with the identical request. Single use. |
policy_denied | deny | A matching deny rule applied. Deny always wins. |
no_matching_policy | deny | No rule matched. Default deny. |
agent_unknown | deny | The agent ID isn't registered in this environment. |
agent_revoked | deny | The agent is disabled. |
subject_required | deny | The only matching rules need a subject and none was sent. |
delegation_required | deny | A matching rule requires a delegation and none was sent. |
delegation_invalid | deny | The delegation doesn't exist or belongs to another agent or subject. |
delegation_scope_exceeded | deny | The delegation doesn't cover this action. |
delegation_expired | deny | The delegation has expired. |
delegation_revoked | deny | The delegation was revoked. |
approval_required | approval_required | A matching require_approval rule applies. An approval was created. |
approval_pending | deny | The approval hasn't been resolved yet. |
approval_rejected | deny | The approval was rejected. |
approval_expired | deny | The approval expired before it was redeemed. |
approval_mismatch | deny | The request differs from the one that was approved. |
approval_consumed | deny | The approval was already redeemed. |
Reason codes are stable identifiers you can branch on. Show end users a generic message; do not reveal policy details.
Something wrong or unclear? Report an issue with this page.