All error codes

image_not_mounted

HTTP 409 No image is inserted into this server

What happened

You asked to eject an image and the platform found nothing inserted in the server's drive. In practice this means the drive was emptied between the moment the gateway read the server and the moment it acted.

What to do

Read `GET /v1/servers/{id}/iso`: if `occupied` is false the drive is already empty and there is nothing left to do. If it still reports an image, repeat the same request.

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/image_not_mounted",
    "title": "No image is inserted into this server",
    "status": 409,
    "code": "image_not_mounted",
    "request_id": "a277dcd1ca652c65"
}

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