All error codes

vpn_not_enabled

HTTP 409 The VPN tunnel is not enabled on this router

What happened

The tunnel interface does not exist on this router: the tunnel has never been switched on, or its interface is gone (for example after the router was rebuilt). A tunnel that is merely switched off still accepts devices.

What to do

Send PUT /v1/servers/{id}/router/wireguard or /router/openvpn with enabled: true, then repeat the request with the same idempotency key.

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/vpn_not_enabled",
    "title": "The VPN tunnel is not enabled on this router",
    "status": 409,
    "code": "vpn_not_enabled",
    "request_id": "a277dcd1ca652c65"
}

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