Errors
Every error has the same shape and a code that keeps its meaning
Updated
API documentation pages
Every error is application/problem+json with a code. Decide on the code: its meaning never changes. title and detail are for people, in English, or Thai with Accept-Language: th.
{
"type": "https://xver.cloud/en/docs/api/errors/#insufficient_scope",
"title": "Insufficient scope",
"status": 403,
"code": "insufficient_scope",
"detail": "The API token does not have the scope this request needs.",
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"required_scope": "servers:password"
}request_idis also in theX-Request-Idheader. Quote it when you contact support.errorslists the fields of avalidation_failed.required_scopesays what a token lacks;retry_afterand theRetry-Afterheader say when to try again.- A resource your token may not see answers
404, exactly like one that does not exist. - New codes may come. Treat a code you do not know by its HTTP status.
Codes#
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
The request could not be read. Check its format. |
| 400 | invalid_cursor |
The cursor is not valid for this list. Start again without a cursor. |
| 400 | project_required |
This token can reach several projects. Send project_id. |
| 400 | idempotency_key_required |
Send the Idempotency-Key header with this request. |
| 401 | unauthenticated |
Send an API token in the Authorization header. |
| 401 | token_invalid |
The API token is not valid. |
| 401 | token_expired |
The API token has expired. Create a new one in the console. |
| 401 | token_revoked |
The API token was revoked. |
| 402 | insufficient_credit |
The credit is not enough for this request. Top up and try again. |
| 402 | spend_blocked |
New resources are blocked because the credit does not cover current usage. |
| 403 | termination_protection_web_only |
Deletion protection can only be turned off by hand on the server page in the console. |
| 403 | account_suspended |
This account is suspended. Contact support. |
| 403 | email_not_verified |
Verify the email address of this account first. |
| 403 | kyc_required |
Verify the identity of this account first. |
| 403 | owner_ineligible |
The owner of this project cannot create resources now. |
| 403 | insufficient_scope |
The API token does not have the scope this request needs. |
| 403 | project_access_denied |
Your role in this project does not allow this request. |
| 403 | password_access_denied |
You are not allowed to see the passwords of this project's servers. |
| 403 | token_not_allowed |
This request does not accept API tokens. |
| 403 | beta_not_enabled |
The API is not enabled for this account yet. |
| 404 | resource_not_found |
The resource does not exist or you cannot see it. |
| 404 | project_not_found |
The project does not exist or you cannot see it. |
| 404 | operation_not_found |
The operation does not exist or was created by another token. |
| 404 | not_found |
There is nothing at this path. |
| 405 | method_not_allowed |
This path does not support the HTTP method. |
| 409 | install_in_progress |
An installation is running on this server. Try again when it ends. |
| 409 | resource_busy |
Another operation is running on this resource. |
| 409 | rename_cooldown |
This server was renamed recently. Try again later. |
| 409 | termination_protected |
This server is protected from deletion and from restores over its disk. |
| 409 | server_not_ready |
The server is not ready for this request. |
| 409 | server_has_no_password |
This server was created with SSH keys and has no stored password. |
| 409 | volume_attached |
The volume is attached. Detach it first. |
| 409 | project_mismatch |
The resources are in different projects. |
| 409 | project_changed |
The resource or its project changed during the request. Try again. |
| 409 | backup_not_enabled |
Turn on backups for this server first. |
| 409 | backup_not_restorable |
This backup cannot be restored in its current state. |
| 409 | backup_in_progress |
A backup of this server is running. |
| 409 | resize_not_allowed |
The server cannot be resized to this plan. |
| 409 | ssh_key_duplicate |
This SSH key is already in the account. |
| 409 | idempotency_in_progress |
A request with the same Idempotency-Key is still running. |
| 413 | payload_too_large |
The request body is too large. |
| 422 | validation_failed |
One or more fields are not valid. See errors. |
| 422 | idempotency_mismatch |
This Idempotency-Key was used with a different request. |
| 422 | quota_exceeded |
The account has reached its server limit. |
| 422 | ssh_key_limit |
The account has reached its SSH key limit. |
| 422 | block_volume_limit |
The account has reached its volume limit. |
| 422 | block_volume_too_large |
The size is over the limit of one volume. |
| 422 | block_storage_quota_exceeded |
The size is over the block storage quota of the account. |
| 422 | plan_unavailable |
The plan does not exist or is not sold now. |
| 422 | image_unavailable |
The image does not exist or is not offered now. |
| 422 | image_requirement_not_met |
The image needs more vCPU or memory than the plan has. |
| 422 | ssh_key_not_supported |
This image does not support SSH keys. |
| 429 | rate_limited |
Too many requests. Wait and try again. |
| 500 | internal_error |
Something went wrong. Quote request_id when you contact support. |
| 502 | upstream_failed |
The request could not be done. Nothing was changed. Try again later. |
| 502 | outcome_unknown |
The request was sent but its result is not known. Check the resource before you try again. |
| 503 | capacity_unavailable |
There is no capacity for this request now. Try again later. |
| 503 | service_paused |
This service is paused. Try again later. |
| 503 | maintenance |
The system is under maintenance. Try again later. |
What to do#
- 401: the token is wrong, expired or revoked. Do not retry; make a new token in the console.
- 403: the token or your role lacks something.
required_scopenames it. Do not look for a way around it. - 409: the resource is busy or in a state that does not allow this. Wait, read it again, then decide.
- 429: wait for
Retry-Afterseconds. - 502
outcome_unknown: the request went out but its result is not known. Read the resource, or send the same request again with the sameIdempotency-Key. Never make a new one.