All error codes

server_not_running

HTTP 409 The server is not running

What happened

You asked for the console of a server that is not running: stopped, paused, or still being created or reinstalled. A console shows a running guest only.

What to do

Power the server on (POST /v1/servers/{id}/actions/power-on), wait until its status is running, then request the console again.

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/server_not_running",
    "title": "The server is not running",
    "status": 409,
    "code": "server_not_running",
    "request_id": "a277dcd1ca652c65"
}

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