All error codes

invalid_router_rule

HTTP 422 Router rule was rejected

What happened

The router rule or port forward was rejected on its content: an unknown action or protocol, a port without a tcp or udp protocol, a malformed address, port or port range, a description that is too long or carries control characters, or a target that is not an IPv4 address.

What to do

Fix the field named in detail and send the request again with a new idempotency key. Ports are numbers, comma-separated lists or dash ranges such as 10000-20000; addresses are IPv4 or IPv4/prefix.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/invalid_router_rule",
    "title": "Router rule was rejected",
    "status": 422,
    "code": "invalid_router_rule",
    "request_id": "a277dcd1ca652c65"
}

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