Reference · Error codes
Error: policy_denied
A policy denied the action. Denials of agent actions are normally results, not errors.
HTTP 403 · problem type: https://docs.gebsecure.com/errors/policy_denied · title: policy_denied
Common causes#
- A
forbidpolicy matched, nopermitapplied (default deny), or a risk threshold denied the request. POST /v1/executereturns a denied execution as anExecuteResult(HTTP 403,status: "denied") whoseerror.codeispolicy_denied;POST /v1/authorizereturnsdecision: "DENY"with HTTP 200.
What to do#
- Read
reasonandexplanationof the decision, or replay the request against candidate policies withPOST /v1/policies/simulate.
In the SDKs#
| SDK | Error type |
|---|---|
| TypeScript | PolicyDeniedError |
| Python | PolicyDeniedError |
| Go | ErrPolicyDenied |
| Java | PolicyDeniedException |
| .NET | PolicyDeniedException |
Every error response is RFC 9457 application/problem+json; see the error model.