ErrorCodeEnum
Standardized error codes returned by the APIEnum Type
Values
| Value | Description |
|---|---|
AUTHORIZATION_ERROR | General authorization error |
AUTHORIZATION_FAILED | OAuth authorization failed |
BUSINESS_RULE_ERROR | Business logic constraint violated |
CNPJ_EXISTS | CNPJ already exists |
COMPANY_ORGANIZATION_MISMATCH | Company does not belong to the specified organization |
COMPANY_REQUIRED | Company context required. Include X-COMPANY-SLUG header. |
FORBIDDEN | Access denied due to insufficient permissions |
INTERNAL_ERROR | Unexpected server error |
NAME_EXISTS | Name already exists |
NAME_REQUIRED | Name is required |
NOT_FOUND | Requested resource not found |
ORGANIZATION_REQUIRED | Organization context required. Include X-ORGANIZATION-SLUG header. |
RATE_LIMIT_EXCEEDED | API rate limit exceeded. Check X-RateLimit-Reset header for reset time. |
UNAUTHENTICATED | Authentication required but not provided |
VALIDATION_ERROR | Input validation failed |
