All error codes

router_apply_failed

HTTP 503 The router did not accept the change

What happened

The router refused the change or did not answer while applying it; the change may or may not have been applied. Creating an access rule or a port forward also answers it when the router accepted the rule but no longer has it (it restarted before saving its configuration). Moving a router's public address (PUT /v1/servers/{id}/router/wan-ip) ends its task with this code when the router refused the new address; nothing was changed.

What to do

Read the router state first. If the change is not there, repeat the request later with a new idempotency key. If it keeps failing, contact support with the request id.

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_apply_failed",
    "title": "The router did not accept the change",
    "status": 503,
    "code": "router_apply_failed",
    "request_id": "a277dcd1ca652c65"
}

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