Skip to content

ValidonX API Error Codes

Per ADR-009: Error Taxonomy & Error Handling Last updated: 2026-04-03

Error Response Format

All errors follow the structured envelope format:

json
{
  "error": {
    "code": "DOMAIN.CATEGORY",
    "message": "Human-readable description",
    "type": "domain",
    "status": 401,
    "details": {}
  },
  "meta": {
    "request_id": "uuid",
    "api_version": "1"
  }
}

Error Code Reference

AUTH — Authentication & Authorization

CodeHTTPDescription
AUTH.INVALID_CREDENTIALS401Email or password is incorrect
AUTH.INVALID_API_KEY401Missing, invalid, or revoked API key
AUTH.API_KEY_REVOKED401API key has been revoked
AUTH.ACCOUNT_LOCKED429Account temporarily locked due to repeated failed login attempts
AUTH.UNAUTHENTICATED401No valid authentication token provided
AUTH.FORBIDDEN403Authenticated but insufficient permissions
AUTH.INSUFFICIENT_PERMISSIONS403User lacks required role/ability
AUTH.VERIFICATION_FAILED403Invalid email verification link
AUTH.PASSWORD_RESET_FAILED422Invalid or expired password reset token

RATE_LIMIT — Rate Limiting

CodeHTTPDescription
RATE_LIMIT.EXCEEDED429Too many requests — check Retry-After header

TENANT — Tenant Resolution

CodeHTTPDescription
TENANT.NOT_FOUND404Tenant does not exist
TENANT.INVALID_STATE403Tenant is not in a valid state for this operation
TENANT.STATUS.SUSPENDED403Tenant is suspended

LICENSE — License Operations

CodeHTTPDescription
LICENSE.NOT_FOUND404License key does not exist
LICENSE.REVOKED403License has been revoked

ACTIVATION — Activation Operations

CodeHTTPDescription
ACTIVATION.INVALID422Invalid activation request
ACTIVATION.LIMIT_EXCEEDED403Maximum activations reached for this license

ENTITLEMENTS — Entitlement Operations

CodeHTTPDescription
ENTITLEMENTS.MISSING403Required entitlement not available on current plan
ENTITLEMENTS.LIMIT_EXCEEDED403Entitlement usage limit exceeded

BILLING — Billing & Subscription

CodeHTTPDescription
BILLING.SUBSCRIPTION_NOT_FOUND404Subscription does not exist
BILLING.SUBSCRIPTION_ALREADY_CANCELED409Subscription is already cancelled
BILLING.SUBSCRIPTION_STRIPE_ERROR502Stripe API error during subscription operation
BILLING.INVOICE_NOT_FOUND404Invoice does not exist
BILLING.REFUND_NOT_ALLOWED422Refund not allowed for this invoice
BILLING.PAYMENT_METHOD_NOT_FOUND404Payment method does not exist
BILLING.AUTH_FORBIDDEN403Insufficient billing role

ONBOARDING — Self-Service Onboarding

CodeHTTPDescription
ONBOARDING.PLAN_NOT_FOUND404Selected plan is not available
ONBOARDING.CHECKOUT_FAILED502Stripe Checkout session creation failed
ONBOARDING.PROVISIONING_FAILED500Tenant provisioning pipeline failed
ONBOARDING.STRIPE_CUSTOMER_FAILED502Stripe customer creation failed

CATALOG — Product Catalog

CodeHTTPDescription
CATALOG.INVALID_PRODUCT422Invalid product data
CATALOG.INVALID_PLAN422Invalid plan data
CATALOG.NOT_FOUND404Catalog item not found

SYSTEM — Internal Errors

CodeHTTPDescription
INTERNAL.ERROR500Unexpected internal error
SYSTEM.STRIPE_NOT_CONFIGURED500Stripe API keys not configured
VALIDATION.FAILED422Request validation failed (see details for field errors)

Built by Veltara Works