Error shape#
Errors use application/problem+json. Branch on code, show detail.
json
{
"type": "/errors/not-found", "title": "Not Found",
"code": "resource.not_found", "status": 404,
"detail": "This item doesn't exist or you don't have access to it.",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}| Field | Meaning |
|---|---|
code / status / title |
Stable error ID, HTTP status, short title. |
detail |
Safe user-facing message. |
field_errors |
Input errors ( field, tag, message). Never echoes values. |
resources / resolution |
Related objects ( items, total, truncated), next step (code, message). |
retry / details / trace_id |
Retry info, technical metadata ( reason, error_code), log ID. |
Codes you will meet most#
| Code | HTTP | Meaning |
|---|---|---|
request.invalid |
400 |
Malformed request ( field_errors when present). Fix input. |
auth.session_required |
401 |
No cookie or token. Sign in or send token. |
auth.session_invalid |
401 |
Session expired or ended. Sign in again. |
auth.legacy_auth_disabled |
401 |
Bearer lacks prn_…. Send a Principal token. |
auth.api_token_invalid |
401 |
Invalid, expired, revoked, inactive, unused, or off-network ( details.reason). Reissue or rotate. |
authorization.denied |
403 |
Role lacks permission. Ask an admin. |
auth.api_token_not_allowed |
403 |
Console-only route or missing right ( details.reason). Use console or authorized token. |
resource.not_found |
404 |
Missing or another org. Check ID and org. |
resource.conflict |
409 |
Duplicate or state conflict. Read detail and resources. |
policy.access_held_by_group_rule |
409 |
Group rule already grants access. Edit group or rule. |
policy.existing_rule_conflict |
409 |
Conflicting rule on identity and target. Check resources. |
policy.apply_in_progress |
409 |
Apply running ( details.existing_job_id). Follow that job. |
policy.template_managed |
409 |
Template controls permissions. Edit template or detach rule. |
policy.target_service_account_incomplete |
409 |
MariaDB account lacks privileges ( details.missing_privileges). Run details.recommended_sql. |
target.auto_remediation_unsupported |
422 |
Auto drift fix unsupported. Set k8s_drift_policy to alert or ignore. |
target.manage_refused |
422 |
Account failed privilege check ( detail). Grant privileges, retry Manage it. |
target.replica_account_missing |
409 |
Missing on ClickHouse replica ( details.account, details.replica). Restore or apply rule. |
target.operation_backoff_active |
409 |
Paused after failures. Fix connection, call POST /targets, retry. |
connector.type_unavailable |
422 |
|
connector.paused |
409 |
Connector paused. Resume, then sync. |
connector.test_timed_out |
504 |
Provider test timed out. Retry later (syncs have no limit). |
rotation.check_required |
409 |
Prior rotation interrupted. Call POST /identities. |
rotation.account_missing |
409 |
Account missing on target. Apply rule or restore adopted account. |
rotation.interrupted |
502 |
Connection broke, old password valid. Rotate again. |
rotation.not_confirmed |
502 |
Unconfirmed, both passwords kept. Run check, use kept password. |
upstream.connection_failed |
502 |
Target or upstream unreachable. Check network and address. |
upstream.authentication_failed |
403, 502 |
Credentials rejected (403 DBs, 502 GitLab/GitHub/K8s). Fix settings. |
request.unprocessable |
422 |
Impossible action (e.g. unmanaged target, 403 pre-v7.3). Read detail. |
request.rate_limited |
429 |
Limit hit (pre-sign-in IP limit is 4× signed-in). Wait Retry-After. |
installation.maintenance |
503 |
maintenance_mode (writes paused) or start_blocked (all refused). Wait Retry-After. |
request.cancelled |
499 |
Request cancelled. Check state before retrying. |
Validation (400)#
| Case | Response |
|---|---|
OpenAPI mismatch |
OpenAPI Request Validation Failed, max 20 field_errors (field, tag, message). |
Unreadable JSON |
|
Whole-body check |
Single field: "request" (grants, targets, identity ensure). |
Conflicts and jobs#
Conflicts list related objects and Retry-After: 30:
json
{
"code": "policy.apply_in_progress", "status": 409, "title": "Apply In Progress",
"resources": {"items": [{"kind": "job", "id": "8d1c2b9e-…",
"label": "Running apply", "relation": "running_apply"}],
"total": 1, "truncated": false},
"resolution": {"code": "policy.view_apply",
"message": "Open the running apply. Apply again after it finishes."},
"details": {"binding_id": "3f6c2a7e-…", "existing_job_id": "8d1c2b9e-…",
"attempt": 1, "max_attempts": 3}
}Failed jobs record failure code (CONNECTION_REFUSED), title, message, resolution (Async operations).