All error codes

network_has_router

HTTP 409 A router is linked to this network

What happened

A router is already linked to this network, and you asked for something that requires none: linking a second router, creating a router in it, or changing or deleting the network while the router holds its subnet.

What to do

Unlink the router with `DELETE /v1/networks/{id}/router`, then repeat the same request. If the router sits on the network's base interface, that link goes away only when the router server itself is deleted.

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/network_has_router",
    "title": "A router is linked to this network",
    "status": 409,
    "code": "network_has_router",
    "request_id": "a277dcd1ca652c65"
}

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