Every error has a short sentence and a stable code. Branch on the code, not on the sentence. The control API answers JSON:
{ "error": "This name is already used.", "code": "name_taken" }The X-Si-Error header carries the code too, and Retry-After says how long to wait when it is present. The VM API answers text by default, with the code in parentheses at the end, and JSON when the request sends Accept: application/json.
Requests
Section titled “Requests”| Code | Status | Meaning | Next step |
|---|---|---|---|
bad_proxy_request | 400 | The proxy request is not valid. The program sent a malformed proxy request. | Check the proxy settings of the program. |
bad_request | 400 | The request is not valid. The path, an argument, a header or the body is malformed. | Compare the request with the API reference. |
connection_failed | 400 | The connection could not be completed. The provider did not confirm the sign-in. | Try to connect again. |
connection_refused | 400 | The provider refused the connection. The sign-in at the provider was cancelled or refused. | Try to connect again. |
device_code_expired | 400 | This code expired. The code was not approved within its 10 minute life. | Run `si login` again. |
device_code_invalid | 400 | This code is not valid. No waiting device code has this user code, or the code was already approved or denied. | Check the code your terminal shows, or run `si login` again. |
env_too_large | 400 | The environment is too large. It has at most 128 variables and 32 KiB in total. | Remove variables or move large values to files. |
github_conflict | 400 | Another rule already sends a credential to GitHub. A secret rule on a GitHub host, such as the github preset, clashes with the connection. | Remove that rule, then attach the connection. |
inbox_disabled | 400 | The inbox of this SVM is off. The action needs an inbox. | Turn the inbox on. |
installation_unavailable | 400 | The installation is not accessible. Your account at the provider cannot use this installation. | Check the installation at the provider. |
invalid_access | 400 | The port access is not valid. Access is `authenticated` or `public`. | Check the field and send the request again. |
invalid_action | 400 | The schedule action is not valid. The action is a command, an inbox message or a snapshot. | Check the field and send the request again. |
invalid_actor | 400 | The actor is not valid. The audit filter names no actor form. | Check the field and send the request again. |
invalid_bot_token | 400 | The bot token is not valid. Telegram refused the token. | Check the field and send the request again. |
invalid_command | 400 | The command is not valid. The command is empty or holds a NUL byte. | Check the field and send the request again. |
invalid_concurrency | 400 | The concurrency is not valid. The value is outside the range or is not a known mode. | Check the field and send the request again. |
invalid_cron | 400 | The cron is not valid. A cron has five fields: minute, hour, day, month and weekday. | Check the field and send the request again. |
invalid_cursor | 400 | The cursor is not valid. The cursor does not come from this list. | Check the field and send the request again. |
invalid_description | 400 | The description is not valid. It has at most 200 characters and no control character. | Check the field and send the request again. |
invalid_domain | 400 | A host is not valid. Use an exact host name, or `*.` and a domain for its subdomains. | Check the field and send the request again. |
invalid_env | 400 | An environment variable is not valid. A name breaks the rules or is reserved. | Check the field and send the request again. |
invalid_expires_in_days | 400 | The expiry is not valid. `expires_in_days` is 1 to 365. | Check the field and send the request again. |
invalid_if_absent | 400 | The if_absent value is not valid. `if_absent` is a boolean and needs a name. | Check the field and send the request again. |
invalid_if_match | 400 | The If-Match header is not valid. It holds a generation number in quotes. | Check the field and send the request again. |
invalid_image | 400 | The image is not valid. The image name is not known. | Check the field and send the request again. |
invalid_injection | 400 | A secret rule is not valid. A rule names one exact host and either a header or a marker. | Check the field and send the request again. |
invalid_keep | 400 | The number to keep is not valid. Keep 1 to 100 backups. | Check the field and send the request again. |
invalid_labels | 400 | The labels are not valid. A label name or value breaks the label rules, or there are too many. | Check the field and send the request again. |
invalid_limit | 400 | The limit is not valid. `limit` is outside the range of the endpoint. | Check the field and send the request again. |
invalid_name | 400 | The name is not valid. The name breaks the naming rule of this resource; its docs page lists the rule. | Check the field and send the request again. |
invalid_patch | 400 | The change is not valid. The body names no field that can change. | Check the field and send the request again. |
invalid_permission | 400 | A permission is not valid. The key names an action that does not exist. | Check the field and send the request again. |
invalid_port | 400 | The port is not valid. A port is a number from 1 to 65535 that is not reserved. | Check the field and send the request again. |
invalid_range | 400 | The time range is not valid. `from` must be before `to`, inside the range the endpoint allows. | Check the field and send the request again. |
invalid_readiness | 400 | The readiness check is not valid. It has a port, an optional path and a timeout of 1 to 120 seconds. | Check the field and send the request again. |
invalid_region | 400 | The region is not valid. The region name breaks the rules. | Check the field and send the request again. |
invalid_scope | 400 | The scope is not valid. A grant names paths and actions from the list in the reference. | Check the field and send the request again. |
invalid_sender | 400 | A sender address is not valid. Use full email addresses. | Check the field and send the request again. |
invalid_size | 400 | The size is not valid. A database has 512 to 16384 MiB in steps of 512. | Check the field and send the request again. |
invalid_sleep | 400 | The sleep policy is not valid. The mode is `auto`, `timer` or `on`; a timer has 30 to 86400 seconds. | Check the field and send the request again. |
invalid_snapshot | 400 | The snapshot is not valid. The request names a snapshot in a wrong form. | Check the field and send the request again. |
invalid_ssh_key | 400 | The SSH key is not valid. Use the public key line of a .pub file. | Check the field and send the request again. |
invalid_state | 400 | The sign-in state is not valid. The browser came back with a state that does not match. | Check the field and send the request again. |
invalid_timeout | 400 | The timeout is not valid. The timeout is outside the range of the endpoint. | Check the field and send the request again. |
invalid_timezone | 400 | The time zone is not valid. Use a zone name such as `Europe/Berlin`. | Check the field and send the request again. |
invalid_ttl | 400 | The lifetime is not valid. The lifetime is outside the range of the endpoint. | Check the field and send the request again. |
invalid_user | 400 | A user id is not valid. Use numeric Telegram user ids. | Check the field and send the request again. |
invalid_value | 400 | The value is empty. A secret needs a value. | Check the field and send the request again. |
invalid_webhook | 400 | The webhook is not valid. A webhook is an `https://` URL that is publicly reachable. | Check the field and send the request again. |
invite_invalid | 400 | This invite code is not valid. The code is unknown, used up or expired. | Check the code or ask for a new one. |
private_key | 400 | This is a private key. Send the public key. The text is the private half of an SSH key. | Send the .pub file, and replace the private key if you shared it. |
provider_unavailable | 400 | This provider is not available. The provider is not set up for connections. | Use another provider. |
reserved_label | 400 | The label name is reserved. Labels that start with `si.` belong to the platform. | Use another label name. |
rsa_key_too_short | 400 | The RSA key is too short. RSA keys need at least 2048 bits. | Create an Ed25519 key. |
schedule_too_frequent | 400 | The schedule runs too often. Two runs are closer together than your plan allows. | Use a longer interval. |
unknown_connection | 400 | A rule names a connection that does not exist. The connection was deleted or is not yours. | List your connections. |
unknown_provider | 400 | This provider is not supported. No connection exists for the provider. | Use a provider from the list. |
unknown_region | 400 | This region does not exist. No place to run an SVM has this name. | Omit the region or choose another one. |
unknown_secret | 400 | A rule names a secret that does not exist. The secret was deleted or belongs to another project. | List the secrets of the project. |
unsupported_key_type | 400 | This SSH key type is not supported. Use Ed25519, RSA, ECDSA or a security key. | Create an Ed25519 key. |
invalid_memory | 422 | The memory is not valid. A shared SVM has 2, 4, 8 or 16 GiB; a dedicated SVM has 4, 8 or 16 GiB. | Choose one of these sizes. |
invalid_request | 422 | A field of the request is not valid. A field is missing or has the wrong type. The answer names it in `field`. | Check the field and send the request again. |
invalid_tier | 422 | The tier is not valid. The tier is `shared` or `dedicated`. | Check the field and send the request again. |
size_unavailable | 422 | This size is not available. No place to run an SVM offers this memory. | Choose a smaller size. |
Scroll horizontally to see all columns.
Access
Section titled “Access”| Code | Status | Meaning | Next step |
|---|---|---|---|
key_expired | 401 | The API key has expired. The key is past its expiry. | Create a new key. |
unauthorized | 401 | Sign in or send a valid API key. The credential is missing, invalid or revoked, or the feature is not available. | Sign in again or replace the key. |
databases_not_allowed | 403 | Your plan does not include databases. The plan refuses Postgres databases, their branches and their restores. | Ask about your plan. |
forbidden | 403 | This request is not allowed. The origin, the grant or the file permissions refuse it. | Check the permission and the path. |
forbidden_permission | 403 | The key does not have this permission. The credential does not hold the action of the endpoint. | Use a key with the permission. |
host_blocked | 403 | This SVM may not reach the host. The outbound access list or a platform rule refuses the host. | Add the host to the allowed hosts. |
inbox_not_allowed | 403 | Your plan does not include inboxes. The plan refuses email inboxes. | Ask your administrator about the plan. |
permission_not_grantable | 403 | You cannot grant this permission. A key can hold only permissions that you hold. | Remove the permission. |
public_ports_not_allowed | 403 | Your plan does not include public ports. The plan refuses ports that anyone can reach. | Use authenticated access. |
size_not_allowed | 403 | Your plan does not include this VM size. The plan allows shared VMs of 2, 4 and 8 GiB only: not 16 GiB and not the dedicated tier. | Choose a smaller shared size, or ask about your plan. |
waitlist | 403 | This account is not approved yet. The account waits for approval. | Wait for the approval email. |
Scroll horizontally to see all columns.
Missing resources
Section titled “Missing resources”| Code | Status | Meaning | Next step |
|---|---|---|---|
branch_not_found | 404 | This branch does not exist. No branch of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
connection_not_found | 404 | This connection does not exist. No connection of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
database_not_found | 404 | This database does not exist. No database of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
key_not_found | 404 | This API key does not exist. No API key of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
not_found | 404 | Nothing exists at this address. No endpoint, file or SVM has this path. | Check the address. |
profile_not_found | 404 | This profile does not exist. No profile of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
project_not_found | 404 | This project does not exist. No project of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
schedule_not_found | 404 | This schedule does not exist. No schedule of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
secret_not_found | 404 | This secret does not exist. No secret of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
snapshot_not_found | 404 | This snapshot does not exist. No snapshot of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
ssh_key_not_found | 404 | This SSH key does not exist. No SSH key of your organization has this name, fingerprint or id. | Check the name and the project. |
svm_not_found | 404 | This SVM does not exist. No SVM of your organization has this name or id, or it belongs to another project. | Check the name and the project. |
method_not_allowed | 405 | This method does not apply here. The path exists but not for this method. | Check the API reference. |
Scroll horizontally to see all columns.
Time limits
Section titled “Time limits”| Code | Status | Meaning | Next step |
|---|---|---|---|
timeout | 408 | The request took too long. An input or upload stalled, or the request ran out of time. | Retry with a stable connection. |
wait_timeout | 408 | The state did not change in time. The wait ended before the SVM reached the state. | Wait again. |
Scroll horizontally to see all columns.
Conflicts and limits
Section titled “Conflicts and limits”| Code | Status | Meaning | Next step |
|---|---|---|---|
conflict | 409 | The request conflicts with another change. Another change happened at the same time, or the path has another type. | Read the current state and retry. |
connection_in_use | 409 | This connection is in use. An SVM uses the connection. | Remove the rule that names it first. |
dedicated_capacity | 409 | No dedicated core is free right now. All dedicated cores are in use. | Retry later, or use a shared SVM. |
default_project | 409 | The default project cannot be changed. The project `default` cannot be renamed or deleted. | Use another project. |
deleting | 409 | This resource is being deleted. A delete is in progress. | Wait, then create it again if you need it. |
generation_moved | 409 | The SVM changed during the wait. The generation in the request is no longer current. | Read the SVM and retry. |
key_exists | 409 | This SSH key is already added. Your organization has this key. | Use the existing key. |
main_branch | 409 | The main branch cannot be deleted. The main branch is the database itself. | Delete the database instead. |
name_taken | 409 | This name is already used. Another resource in the same scope has the name: the project for most resources, the VM for a schedule. | Choose another name. |
no_webhook | 409 | This inbox has no webhook. There is no webhook secret to replace. | Add a webhook first. |
not_a_backup | 409 | This snapshot is not a backup. A branch can start only from a backup of the database. | Choose a backup. |
not_connected | 409 | No bot is connected. The SVM has no Telegram bot. | Connect a bot first. |
not_supported_by_image | 409 | The image of this SVM does not support this. The image has no SSH server or desktop. | Use the default image. |
password_missing | 409 | This branch has no stored password. The password of the branch was removed. | Reset the password or create the branch again. |
port_closed | 409 | This port is closed. The port has no rule. | Open the port first. |
port_limit | 409 | You have reached the limit of ports. Your plan allows no more ports. | Delete one, or ask about your plan. |
project_limit | 409 | You have reached the limit of projects. Your plan allows no more projects. | Delete one, or ask about your plan. |
project_not_empty | 409 | This project is not empty. The project still holds resources. | Delete its resources first. |
schedule_limit | 409 | You have reached the limit of schedules. Your plan allows no more schedules. | Delete one, or ask about your plan. |
secret_in_use | 409 | This secret is in use. An SVM, a profile or a database uses the secret. | Remove the rule that names it first. |
snapshot_failed | 409 | This snapshot failed. The capture did not complete. | Create a new snapshot. |
snapshot_in_use | 409 | This snapshot is in use. An SVM or a schedule uses the snapshot. The answer lists them in `used_by`. | Delete what uses it first. |
snapshot_limit | 409 | You have reached the limit of snapshots. Your plan allows no more snapshots. | Delete one, or ask about your plan. |
snapshot_not_ready | 409 | This snapshot is not ready yet. The capture is still running. | Wait and retry. |
ssh_key_limit | 409 | You have reached the limit of SSH keys. Your plan allows no more SSH keys. | Delete one, or ask about your plan. |
svm_blocked | 409 | This SVM cannot start from its last state. The last saved state failed a security check. | Create a new SVM from a snapshot you trust. |
svm_limit | 409 | You have reached the limit of SVMs. Your plan allows no more SVMs. | Delete one, or ask about your plan. |
generation_mismatch | 412 | The SVM changed since you read it. `If-Match` names a generation that is not current. | Read the SVM and retry. |
precondition_failed | 412 | The file changed since you read it. `If-Match` or `If-None-Match` did not hold. | Read the file and retry. |
Scroll horizontally to see all columns.
Size and ranges
Section titled “Size and ranges”| Code | Status | Meaning | Next step |
|---|---|---|---|
payload_too_large | 413 | The input is too large. The input, the arguments or the file is above its limit. | Send less data, or upload a file in parts. |
range_not_satisfiable | 416 | The range starts past the end of the file. A range or an offset is outside the file. | Read the file size first. |
wrong_host | 421 | The request reached the wrong host. The address moved while the request was on its way. | Retry the request. |
Scroll horizontally to see all columns.
Rate limits
Section titled “Rate limits”| Code | Status | Meaning | Next step |
|---|---|---|---|
too_many_requests | 429 | Too many requests. Try again soon. A request, stream or terminal limit is in use. | Wait for `Retry-After`. |
too_many_terminals | 429 | Too many terminals are open. The SVM has the most terminals it allows. | Close one. |
Scroll horizontally to see all columns.
Service
Section titled “Service”| Code | Status | Meaning | Next step |
|---|---|---|---|
internal | 500 | Something went wrong on our side. An unexpected error. The answer carries a reference in `ref`. | Retry. If it repeats, send us the reference. |
svm_crashed | 500 | The SVM crashed during the command. The disk is back at the last saved state, so recent changes may be lost. | Check your files, then run the command again. |
connect_failed | 502 | The host did not accept the connection. The host is down or refuses the port. | Check the host and the port. |
name_not_found | 502 | The host name does not exist. DNS has no address for the host. | Check the host name. |
push_failed | 502 | The push service did not accept the notification. The push service of the browser refused the message or did not answer. | Turn notifications off and on again in this browser. |
secret_unavailable | 502 | A secret for this host is not available. The secret was deleted or is not ready. | Check the secrets of the SVM. |
telegram_unavailable | 502 | Telegram did not answer. Telegram refused the request or was not reachable. | Try again. |
bad_preview | 503 | The program on this port did not answer correctly. The program closed the connection or did not speak HTTP. | Check the program and retry. |
database_create_failed | 503 | The database could not be created. Nothing was kept. | Try again. |
database_init_failed | 503 | The database did not start. Nothing was kept. | Try again. |
database_unavailable | 503 | The database is not answering. The database is starting or not reachable. | Try again in a moment. |
file_read_failed | 503 | The file could not be read. The SVM could not read the data of the file. | Retry the request. |
no_capacity | 503 | There is no free capacity right now. No place to run the SVM is free. | Wait for `Retry-After` and retry. |
no_listener | 503 | Nothing listens on this port. No program in the SVM uses the port. | Start your program, or check the port number. |
not_ready | 503 | The service in this SVM is not ready. The readiness port did not answer in time. | Check the service, then retry. |
secret_pending | 503 | The new secret is not active everywhere yet. The value is stored. A running SVM gets it at its next wake. | Send the request again. |
snapshot_pending | 503 | The snapshot of this SVM is still being made. The SVM starts when its snapshot is complete. | Wait for `Retry-After` and retry. |
svm_stopping | 503 | This SVM is restarting. Try again soon. The connection closed because the platform is restarting. | Retry the request. |
svm_unreachable | 503 | This SVM is not answering. The SVM or the way to it is not reachable right now. | Wait for `Retry-After` and retry. |
wake_queue_full | 503 | Too many requests wait for this SVM to wake. The wake queue is full. | Wait for `Retry-After` and retry. |
wake_timeout | 503 | This SVM did not wake in time. The wake continues after this answer. | Wait for `Retry-After` and retry. |
disk_full | 507 | The disk of this SVM is full. The disk has no free space. | Delete files you do not need. |
storage_full | 507 | There is not enough storage right now. There is no room to start the SVM. | Try again later. |
Scroll horizontally to see all columns.