Home / Developers / Error codes
Error codes
Every error your integration should handle, and how. Every one of them is a refusal: none is ever a reason to accept.
SDK verification codes
Every AuthVertex SDK verifier fails closed with one of these codes, the same in every language: TypeScript and Python code, .NET Code, Java getCode(), Go Code. The same input gives the same code in every SDK: the conformance vectors pin it, and the last column counts the vectors that expect each code. Error details never contain token material.
| Code | Meaning | What to do | Conformance vectors |
|---|---|---|---|
malformed | Not a well-formed token, header or JSON body: bad encoding, missing parts, missing Authorization header. | Reject. A client bug or a forged request. | tokens 7, webhooks 17, DPoP 2 |
unsupported_alg | Algorithm not allowed (none, HS256, a key and algorithm that do not match), or a v1-only webhook signature at a receiver that requires v2. | Reject. Never widen the allowed algorithms. | tokens 4, logout 1, webhooks 1, DPoP 3 |
invalid_type | Wrong typ for the use: a logout or DPoP token presented as an access token, a wrong authorization scheme, or a DPoP-bound token sent as Bearer. | Reject. | tokens 2, logout 1, DPoP 2 |
unknown_key | The kid is not in the key set even after a refresh, or a webhook key ID you do not hold. | Reject. Either a key rotation not visible yet or a forged token; the SDK refreshes the key set for you. | tokens 1, logout 1, webhooks 8 |
keys_unavailable | The issuer's keys could not be fetched, or no key source or DPoP verifier is configured. | Treat as a temporary failure: the middleware answers 503. Never fall back to accepting. | None: needs a key source that cannot be reached |
bad_signature | The token signature, or the webhook v1 or v2 signature, does not verify. | Reject. | tokens 4, logout 1, webhooks 18, DPoP 2 |
invalid_issuer | iss is not the configured issuer. | Reject. Usually the wrong environment's issuer. | tokens 2, logout 1 |
invalid_audience | aud does not contain your audience, or azp names another client. | Reject. The token was issued to another client or resource. | tokens 4, logout 1 |
expired | exp has passed, beyond the 60-second clock skew. | Refresh the token or sign the user in again. | tokens 2, logout 1 |
not_yet_valid | nbf or iat is in the future, beyond the clock skew. | Reject. Check your server clock. | tokens 2 |
outside_window | A logout token's iat, a webhook's t or a DPoP proof's iat is outside the accepted window. | Reject. Stale or replayed. | logout 2, webhooks 5, DPoP 2 |
missing_claim | A required claim is absent: sub, exp, org_id with tenant_id and membership_epoch, jti, delegation_id, or a DPoP ath or cnf.jkt. | Reject. | tokens 8, logout 4, DPoP 5 |
invalid_claim | A claim is present but invalid: an actor chain deeper than 4, a nonce mismatch, a logout token with a nonce, a malformed tenant_id or membership_epoch. | Reject. | tokens 14, logout 5, DPoP 4 |
replayed | A logout token's or DPoP proof's jti was already used. | Reject. With several replicas, give the verifier a shared replay cache. | logout 1, DPoP 1 |
htm_mismatch | The DPoP proof's htm is not the request method. | Reject. | DPoP 2 |
htu_mismatch | The DPoP proof's htu is not the request URL, after normalization. | Behind a proxy, configure the public URL the client sees. | DPoP 24 |
ath_mismatch | The DPoP proof's ath is not the hash of the presented access token. | Reject. | DPoP 1 |
jkt_mismatch | The DPoP proof key is not the key the access token is bound to (cnf.jkt). | Reject. The token was presented by someone else. | DPoP 1 |
replay_cache_full | A replay or de-duplication cache could not record a new identifier. | Treat as a temporary failure: the handlers and middleware answer 503 with Retry-After, and your handler does not run. Never read it as a duplicate or as success. | None: needs a key source that cannot be reached |
SDK endpoint responses
What the SDKs' handlers and middleware answer, so that AuthVertex and your clients see the same behavior in every language.
| Handler | Success | Failure |
|---|---|---|
| Access token middleware | Your handler runs | 401 with WWW-Authenticate: Bearer error="invalid_token" (or DPoP); 503 for keys_unavailable |
| Back-channel logout | 200, Cache-Control: no-store | 405 for a method other than POST; 400 with {"error":"invalid_request","error_description":"<code>"}; 400 logout_failed when your callback fails (the token is released for the retry) |
| Webhooks | 200, also for a duplicate event ID | 405 for a method other than POST; 413 when the body is too large; 401 for a bad signature; 400 for a malformed body or no event ID; 500 when your callback fails (AuthVertex retries) |
Control API errors
Every Control API error body is the shared Error object below, with an X-Correlation-ID header. Mutations accept Idempotency-Key: a retry with the same key and request returns the stored response with Idempotent-Replayed: true. Retry 429 and 503 with backoff; do not retry other 4xx responses unchanged.
| Field | Type | Required | Description |
|---|---|---|---|
error | object | required | |
error.code | string | required | Stable machine-readable code; see docs/developers/error-codes.md. |
error.message | string | required | Client-safe message; never contains secrets or PII. |
error.correlation_id | string | required | |
error.problems | array of object | optional | Field-level validation problems (field path + stable code, never values). |
error.problems[].field | string | optional | |
error.problems[].code | string | optional |
These are the 77 codes the 250 published operations can answer, from the Control API's OpenAPI description. Each operation lists its own in the API reference.
HTTP 400
The request is malformed: fix it, do not retry it unchanged.
| Code | Published operations that can answer it |
|---|---|
invalid_request | 221 |
invalid_url | 221 |
secret_ref_not_bound | 220 |
HTTP 401
Authenticate again. insufficient_user_authentication asks for step-up: authenticate again as the challenge says.
| Code | Published operations that can answer it |
|---|---|
insufficient_user_authentication | 244 |
portal_link_invalid | 244 |
unauthenticated | 244 |
HTTP 402
A plan refusal, never an authorization failure: nothing changed.
| Code | Published operations that can answer it |
|---|---|
plan_feature_not_entitled | 4 |
plan_limit_reached | 3 |
HTTP 403
Refused for this caller; the code says why, for example step_up_required.
| Code | Published operations that can answer it |
|---|---|
approver_is_requester | 243 |
approver_not_permitted | 243 |
break_glass_not_permitted | 243 |
client_identity_required | 243 |
dpop_production_environment_only | 243 |
elevation_expired | 245 |
elevation_invalid | 243 |
elevation_self_approval | 243 |
explicit_consent_required | 243 |
forbidden | 243 |
impersonation_forbidden | 243 |
impersonation_not_consented | 243 |
impersonation_self_consent | 243 |
passkey_enrollment_required | 243 |
passkey_identity_mismatch | 243 |
recovery_channel_not_allowed | 243 |
recovery_method_not_allowed | 243 |
recovery_self_approval | 243 |
self_approval_forbidden | 243 |
step_up_required | 243 |
ticket_consent_ended | 245 |
ticket_consent_expired | 243 |
ticket_consent_forbidden | 243 |
ticket_consent_invalid | 243 |
workforce_identity_required | 243 |
HTTP 404
Not found, or outside your scope: the two are indistinguishable.
| Code | Published operations that can answer it |
|---|---|
correlation_policy_missing | 236 |
not_found | 236 |
HTTP 409
Conflicts with the current state: read the state again before deciding.
| Code | Published operations that can answer it |
|---|---|
elevation_expired | 245 |
ticket_consent_ended | 245 |
correlation_policy_missing | 236 |
agents_disabled | 123 |
ambiguous_acknowledgment_required | 123 |
change_already_decided | 123 |
change_expired | 123 |
conflict | 123 |
connection_not_validated | 123 |
domain_conflict | 123 |
impersonation_consent_expired | 123 |
impersonation_consent_revoked | 123 |
inactive_principal_or_grant | 123 |
invalid_configuration | 131 |
invalid_state_transition | 123 |
no_verified_owner | 123 |
owner_exists | 123 |
policy_version_conflict | 123 |
promotion_stale | 123 |
recovery_expired | 123 |
stale_config_version | 123 |
too_many_credentials | 123 |
trusted_certificate_limit | 123 |
HTTP 413
The body is too large.
| Code | Published operations that can answer it |
|---|---|
payload_too_large | 102 |
HTTP 422
Well-formed but refused: the problems list names the fields.
| Code | Published operations that can answer it |
|---|---|
invalid_request | 221 |
invalid_url | 221 |
invalid_configuration | 131 |
agent_policy_invalid | 117 |
assurance_policy_invalid | 117 |
attenuation_violation | 117 |
certificate_rejected | 117 |
domain_not_verified | 117 |
dpop_confidential_only | 117 |
idempotency_key_reused | 117 |
invitation_invalid | 117 |
jwks_unusable | 117 |
overlap_unsupported | 117 |
passwordless_policy_invalid | 117 |
protocol_mismatch | 117 |
registration_denied | 117 |
unverified_source | 117 |
HTTP 428
| Code | Published operations that can answer it |
|---|---|
proof_of_work_required | 1 |
HTTP 429
Retry with backoff.
| Code | Published operations that can answer it |
|---|---|
rate_limited | 207 |
HTTP 500
No detail is given: quote the correlation_id to support.
| Code | Published operations that can answer it |
|---|---|
internal_error | 203 |
HTTP 501
Not available in this environment.
| Code | Published operations that can answer it |
|---|---|
not_implemented | 8 |
HTTP 503
A dependency is unavailable and the request was refused: retry later with backoff.
| Code | Published operations that can answer it |
|---|---|
egress_unavailable | 199 |
engine_unavailable | 199 |
temporarily_unavailable | 199 |
Token endpoint errors
The token and authorization endpoints answer with the standard OAuth 2.0 and OpenID Connect errors: invalid_request, invalid_client, invalid_grant, unauthorized_client, access_denied, invalid_scope, invalid_dpop_proof and use_dpop_nonce, and for CIBA authorization_pending, slow_down and expired_token. A grant refused because the membership is inactive or stale, the organization is suspended or the delegation is revoked answers access_denied or invalid_grant without detail; the reason is in the audit log.