Skip to Content
AgentShield
API Reference

Status Codes

HTTP status codes returned by the gateway and the control plane, and what each means for a caller.

Gateway

StatusauthorizeexecuteHealth
200allow or require_approval recordedAdapter result (live or stored)Live; ready
400Invalid bodyInvalid body; adapter rejected the call—
401Authentication failed; nonce reused; human session sentSame—
403deny recorded (decision body)Decision is deny; agent not active—
404—Decision not found for this agentUnknown path
409Idempotency key reused for a different requestIdempotency, argument, or approval mismatch; approval required or expired; execution failed or interrupted—
429Budget exceeded; no decision recorded——
500Dependency or server failureAdapter timeout; dependency failure—
501—No adapter for the tool or operation—
503—Circuit openNot ready

Control plane

StatusMeaning
200Read succeeded; suspend, resume, revoke, approve, reject, alert change, policy replace succeeded
201Created: session, agent, credential rotation, policy, member, invitation resend, audit export, chaos experiment
204No content: sign-out, password change, invitation accept
400Validation failed
401Missing or invalid bearer token; agent signature headers sent
403Role not allowed; temporary-password session; self-approval
404Not found in your organization; unregistered route; unknown, used, or expired invitation
409Conflict: duplicate name or key, active policy exists, approval not pending or expired, evidence hash mismatch, chaos scenario disabled
413JSON body over 256 KiB
500Server or database failure
503Not ready (/health/ready)

Health endpoints

Service/health/ready is 200 when
GatewayPostgreSQL and Redis answer within one second
Control planePostgreSQL answers
Intelligence engineThe ruleset is loaded
Event relayPostgreSQL and NATS answer, and the oldest queued event is under one minute old

Liveness (/health/live) returns 200 whenever the process is serving.

Decision status versus outcome

The SDKs accept a decision body only with status 200 or 403. Any other status carrying a decision is treated as an invalid response, so a proxy that rewrites status codes cannot turn a deny into something that looks like success.

Was this page helpful?

On this page