Skip to main content

Error code catalog

Scope

This catalog standardizes domain and platform error signaling.

CodeClassMeaning
K7_AUTH_401authAuthentication missing or invalid
K7_TENANT_403tenantTenant boundary violation detected
K7_DOMAIN_409domainCommand conflicts with current state
K7_POLICY_422policyPolicy engine rejected the input
K7_ORCH_503orchestrationWorkflow service temporarily unavailable
K7_UNSUPPORTED_400contractRequested feature is not supported in current version

Invariants

  • Every error must include stable code + short operator-safe message.
  • Internal stack traces must never be returned to API clients.
  • Retriable vs non-retriable class must be explicit.

Failure Modes

  • Unstable or reused error codes across releases.
  • Sensitive system details leaking in error messages.

Out of Scope

  • Full internal troubleshooting playbooks.
  • Vendor-specific transport error mappings.