All error codes

router_unreachable

HTTP 503 The router did not answer

What happened

The router did not answer on its management interface. On a write request this can also mean the change was applied and only the read-back failed, so the router state may already have changed. Moving a router's public address (PUT /v1/servers/{id}/router/wan-ip) ends its task with this code when the router did not answer during the move - error.message of the task says whether the router was restarted on its previous address - and when finishing an interrupted move found the router answering on the new address but could not finish the move on the router - move its port forwards there or save its configuration (the address records were then left unchanged; error.message says so).

What to do

Read the router state before you retry. Then send the same request again later with a new idempotency key.

Retrying

The request itself is fine. Repeat it later. After a 5xx to a write request, read the resource first and repeat with a new idempotency key - the operation may have started - unless this page or the detail of the response says nothing was started or changed; then, as after a 409 or a 429, repeat the request as it is.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/router_unreachable",
    "title": "The router did not answer",
    "status": 503,
    "code": "router_unreachable",
    "request_id": "a277dcd1ca652c65"
}

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