Skip to main content

ErrorCodeEnum

Standardized error codes returned by the API
Enum Type

Values

ValueDescription
AUTHORIZATION_ERRORGeneral authorization error
AUTHORIZATION_FAILEDOAuth authorization failed
BUSINESS_RULE_ERRORBusiness logic constraint violated
CNPJ_EXISTSCNPJ already exists
COMPANY_ORGANIZATION_MISMATCHCompany does not belong to the specified organization
COMPANY_REQUIREDCompany context required. Include X-COMPANY-SLUG header.
FORBIDDENAccess denied due to insufficient permissions
INTERNAL_ERRORUnexpected server error
NAME_EXISTSName already exists
NAME_REQUIREDName is required
NOT_FOUNDRequested resource not found
ORGANIZATION_REQUIREDOrganization context required. Include X-ORGANIZATION-SLUG header.
RATE_LIMIT_EXCEEDEDAPI rate limit exceeded. Check X-RateLimit-Reset header for reset time.
UNAUTHENTICATEDAuthentication required but not provided
VALIDATION_ERRORInput validation failed