API error reference
Every error of the CDNify API is a problem details document (RFC 9457). Its "code" field is one of the codes below, and its "type" field is the address of the page that explains it.
The legacy API v1 and the Reseller API keep their original error formats and are not listed here.
| Error code | HTTP status | Error reference |
|---|---|---|
| alias_in_use | 409 | Site name already in use |
| alias_invalid | 422 | Invalid site name |
| billing_account_missing | 409 | No billing account |
| certificate_authority_unavailable | 409 | Certificate authority unavailable |
| certificate_duplicate | 409 | Certificate already uploaded |
| certificate_invalid | 422 | Invalid certificate |
| certificate_issuance_limited | 409 | Issuance limit reached |
| certificate_not_renewable | 409 | Certificate cannot be renewed |
| certificate_renewal_in_progress | 409 | Renewal in progress |
| conflict | 409 | Conflict |
| cursor_expired | 400 | Cursor expired |
| domain_claim_expired | 409 | Claim expired |
| domain_claim_invalidated | 409 | Domain verified by another account |
| domain_in_use | 409 | Domain already in use |
| domain_limit_exceeded | 409 | Custom domain limit reached |
| domain_not_pointing | 409 | Domain does not point to CDNify |
| edge_node_decommissioned | 409 | Node decommissioned |
| edge_resource_exists | 409 | Already registered |
| edge_state_transition_invalid | 409 | Status change not allowed |
| email_in_use | 409 | Email address already in use |
| email_not_verified | 403 | Email address not verified |
| enrollment_approver_conflict | 403 | Another approver is required |
| enrollment_batch_state | 409 | Batch not ready |
| enrollment_node_not_eligible | 409 | Node not ready for enrollment |
| forbidden | 403 | Access denied |
| idempotency_key_conflict | 409 | Idempotency key reused |
| idempotency_request_in_progress | 409 | Request already in progress |
| insufficient_scope | 403 | Insufficient permissions |
| internal_error | 500 | Internal error |
| invalid_credentials | 401 | Invalid credentials |
| last_owner | 409 | Owner required |
| malformed_request | 400 | Malformed request |
| member_exists | 409 | Already a member |
| method_not_allowed | 405 | Method not allowed |
| mfa_code_invalid | 401 | Invalid verification code |
| mfa_enrollment_required | 403 | Two-factor authentication setup required |
| mfa_required | 403 | Two-factor authentication required |
| not_found | 404 | Not found |
| origin_invalid | 422 | Invalid origin |
| password_incorrect | 422 | Incorrect password |
| password_reset_required | 409 | Password reset required |
| password_too_weak | 422 | Password too weak |
| payload_too_large | 413 | Request too large |
| payment_provider_unavailable | 503 | Payment provider unavailable |
| platform_roles_held | 409 | Platform roles still assigned |
| precondition_failed | 412 | Precondition failed |
| rate_limited | 429 | Too many requests |
| reauthentication_required | 401 | Confirm your identity |
| recovery_code_invalid | 401 | Invalid recovery code |
| service_unavailable | 503 | Service unavailable |
| site_limit_exceeded | 409 | Site limit reached |
| site_type_invalid | 409 | Invalid site type |
| token_invalid | 400 | Link invalid or expired |
| unauthenticated | 401 | Authentication required |
| unsupported_media_type | 415 | Unsupported media type |
| validation_failed | 422 | Validation failed |