A failed request returns a machine-readable code, a human-readable message, and optional metadata. Branch on code; messages can change, codes stay stable.
{"code":"PROJECT_NOT_FOUND","message":"Project not found","meta":{"projectId":123}}
When the body, params or query fail schema validation, the API returns 422 with code and meta and no message. Only the first failing field is reported.
{"code":"FIELD_REQUIRED","meta":{"field":"name"}}
Code
Cause
meta fields
FIELD_REQUIRED
A required field is missing
field
FIELD_TOO_SHORT
Below the minimum length
field, minLength
FIELD_TOO_LONG
Above the maximum length
field, maxLength
VALIDATION_ERROR
Wrong type, format, pattern, range, enum value, or array size
field; for type, format, pattern, range and enum failures also one of expectedType, expectedFormat, expectedPattern, minimum, maximum, allowedValues. Array size and duplicate failures carry only field
Email or password is incorrect. 400 when confirming your current password
INVALID_OR_EXPIRED_TOKEN
400
A reset or verification token is invalid or expired
API_KEY_INVALID
401
API key is malformed or does not exist
API_KEY_DISABLED
401
API key has been deactivated
API_KEY_EXPIRED
401
API key has passed its expiration date
API_KEY_PERMISSIONS_REVOKED
401
The key’s creator was deleted or blocked, or no longer holds any of the permissions behind the key’s scopes. A creator who lost only some of them leaves the key working, and the endpoints behind the lost ones answer 403 FORBIDDEN
Organization does not exist. 403 when the caller is not a member
PROJECT_NOT_FOUND
403, 404
Project does not exist. 403 when the caller has no access to it
API_KEY_NOT_FOUND
404
API key does not exist
LOCALE_NOT_FOUND
400, 404, 422
Locale does not exist. 400 when it arrives as an invalid input code; 422 from POST /v1/projects/{projectId}/mt/fill for a targetLocaleCodes entry that is not a target locale of the project
TRANSLATION_KEY_NOT_FOUND
404
Translation key does not exist
NAMESPACE_NOT_FOUND
404, 422
Namespace does not exist. 422 from POST /v1/projects/{projectId}/mt/fill for a name in namespaces the project lacks
WEBHOOK_NOT_FOUND
404
Webhook does not exist
WEBHOOK_DELIVERY_NOT_FOUND
404
Webhook delivery does not exist
INVITATION_NOT_FOUND
404
Invitation does not exist or has already been used
Any limit the rate-limit plugin enforces: the global limit, every per-route override, or repeated failed authentication. From the global limiter, meta.expiresIn is a human-readable wait such as "1 minute". From the failed-authentication limiter, meta.retryAfter is a number of seconds and there is no expiresIn
RATE_LIMIT_EXCEEDED
429
A route-specific limit the handler enforces itself, such as type generation or the import session bucket
Unexpected internal error. 502 when an upstream provider failed, 504 when it timed out
INTERNAL_SERVER_ERROR
500
General server error
CACHE_INVALIDATION_FAILED
500
A permission change was refused because its cache flush failed
UNKNOWN
500, 413
An error Comvi did not raise itself, with the status the server gave it: 413 for a body over the route’s limit, otherwise 500. In production a 5xx message is replaced with Internal server error
Every limit the rate-limit plugin enforces sends these headers: the global limit and every per-route override, including machine translation, CDN deploys, AI context, and the auth and account routes. RATE_LIMIT_EXCEEDED, raised by handlers, and the 429 from repeated failed authentication carry the wait in meta instead.