Skip to content

Reason codes and errors

A status code identifies a broad failure class. A machine reason identifies the boundary that rejected the operation. Preserve the exact returned reason when investigating; do not infer a credential failure from every forbidden response.

  1. Record the HTTP or protocol error and its safe reason code.
  2. Identify the request’s environment, caller, resource, and time.
  3. Match the reason to the applicable API contract or schema.
  4. Search the corresponding audit event and compare the active policy or projection.
BoundaryInspect
AuthenticationToken verification and the configured identity flow.
AuthorizationPrincipal, action, resource, context, and deny precedence.
CredentialsBinding state and allowed credential mode.
RouteRegistered endpoint and compatibility profile.
SessionMissing, expired, revoked, or draining state.
ReadinessDependencies and accepted configuration freshness.

Exact reason values come from the current contract and implementation. See troubleshooting for the diagnostic sequence. Never include token values or upstream secret material in an error report.

Amelfi documentation · Space Grotesk / Geist Mono