All error codes

router_network_required

HTTP 422 A router requires exactly one private network

What happened

A create request using a router image did not carry exactly one private network in networks - either none at all, or more than one. That single network becomes the router's base interface.

What to do

Send exactly one network id in networks, and attach any further networks afterwards with PUT /v1/networks/{id}/router. The network you name must have a subnet and must not already have a router.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/router_network_required",
    "title": "A router requires exactly one private network",
    "status": 422,
    "code": "router_network_required",
    "request_id": "a277dcd1ca652c65"
}

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