All error codes

server_unavailable

HTTP 503 Server is temporarily unavailable

What happened

The server could not be read or reached right now. This covers the server record being unreadable, the platform behind it not answering, the server type being disabled, and registries such as backups, images or SSH keys not responding.

What to do

Retry after a short delay with the same request. If it was a write request, re-read the resource you were changing first, because the operation may have been submitted before the failure. Attaching or detaching a router on a network is not idempotent, so repeating one of those blindly can answer 409 once it has in fact been applied.

Retrying

The request itself is fine. Repeat it later; after a 5xx use a new idempotency key and read the resource first.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/server_unavailable",
    "title": "Server is temporarily unavailable",
    "status": 503,
    "code": "server_unavailable",
    "request_id": "a277dcd1ca652c65"
}

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