All error codes

router_rule_taken

HTTP 409 A rule with this priority already exists

What happened

A rule with the priority you asked for already exists on the router. Numbers are checked against the live router configuration, including rules created by hand, so this can happen for a number the API never handed out.

What to do

Pick a different priority, or omit it and let the platform choose, or delete the rule holding that number. 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/router_rule_taken",
    "title": "A rule with this priority already exists",
    "status": 409,
    "code": "router_rule_taken",
    "request_id": "a277dcd1ca652c65"
}

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