Vault

Error codes

Vault error statuses and retryability.

Every error response has the shape below; code is the stable error code and message is for people.

{
  "request_id": "req_example",
  "error": {
    "code": "SECRET_CONFLICT",
    "message": "A secret named GITHUB_TOKEN already exists",
    "kind": "validation_failure",
    "recovery": "none",
    "retryable": false
  }
}

Error bodies include request_id for tracing. Compatibility endpoints use the following shape; 409 maps to conflict_error, and non-retryable errors carry x-should-retry: false.

{
  "type": "error",
  "error": {
    "type": "conflict_error",
    "message": "A credential with this name already exists"
  },
  "request_id": "req_example"
}
CodeHTTPMeaning, trigger and actionkindrecoveryRetryable
VAULT_NOT_FOUND404Vault absent or outside this account; check the vault IDvalidation_failurenoneno
SECRET_NOT_FOUND404Secret absent, including lookup by an invalid name; check name or IDvalidation_failurenoneno
AUTHORIZATION_NOT_FOUND404Authorization or connect link absent; start authorization againvalidation_failurenoneno
SECRET_CONFLICT409Name already exists on creation; rename or update the existing secretvalidation_failurenoneno
VAULT_INVALID_STATE409Writing to an archived vault or secret; use an active resourcevalidation_failurenoneno
VAULT_LIMIT_EXCEEDED400Active-secret limit exceeded; remove unused secretsvalidation_failurenoneno
INVALID_PARAMS400Invalid fields, names, hosts, metadata, pagination or return URL; correct the requestvalidation_failurenoneno
SECRET_KIND_MISMATCH400Refreshing a static secret or another kind mismatch; use an OAuth secretvalidation_failurenoneno
VALIDATE_UNSUPPORTED400Validating a static secret; only OAuth secrets support validationvalidation_failurenoneno
SECRET_TOO_LARGE413Value exceeds 16384 bytes; reduce its sizevalidation_failurenoneno
RATE_LIMITED429Authorization or validation minute quota exceeded; wait for the next windowrate_limitwait_then_retryyes
AUTHORIZATION_EXPIRED410Authorization link expired after 30 minutes or was consumed; start againvalidation_failureretry_from_userno
OAUTH_DISCOVERY_FAILED400OAuth metadata discovery failed; check the resource URLvalidation_failurecontinue_from_problemno
OAUTH_REGISTRATION_UNSUPPORTED400Provider does not accept automatic client registration; add credentials manuallyvalidation_failurecontinue_from_problemno
OAUTH_ISSUER_MISMATCH400Authorization issuer differs from the expected issuer; check the service URLprovider_upstreamretry_from_userno
OAUTH_STATE_INVALID400Callback state missing, invalid or replayed; start authorization againvalidation_failurenoneno
OAUTH_EXCHANGE_FAILED502Provider rejected the authorization-code exchange; authorize againprovider_upstreamretry_from_userno
NOT_IMPLEMENTED501Capability unavailable; use a documented alternativeexecution_failednoneno
Export

On this page

No Headings