All error codes

backup_not_ready

HTTP 409 This backup is not a finished archive yet

What happened

You asked to restore a server from a backup that is not a finished archive. The backup is still being taken, is being deleted, failed, or its archive is not visible to the platform right now - anything other than status `available`.

What to do

Read the backup again with `GET /v1/servers/{id}/backups/{backup}` - the read checks it on the storage. If it reads `available`, repeat the same request; `creating` or `deleting` - wait and read again. Only a backup that reads `failed`, or still `unavailable` on that read, has no archive to restore from - pick another one then, not before.

Retrying

Change the state this refers to, then repeat the same request with the same idempotency key.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/backup_not_ready",
    "title": "This backup is not a finished archive yet",
    "status": 409,
    "code": "backup_not_ready",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.