GebSecure Docs v0.1.0

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 forbid policy matched, no permit applied (default deny), or a risk threshold denied the request.
  • POST /v1/execute returns a denied execution as an ExecuteResult (HTTP 403, status: "denied") whose error.code is policy_denied; POST /v1/authorize returns decision: "DENY" with HTTP 200.

What to do#

  • Read reason and explanation of the decision, or replay the request against candidate policies with POST /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.