All error codes

vpn_key_exists

HTTP 409 A device with this public key already exists

What happened

A device with this public key already exists on the tunnel, on the platform or on the router itself.

What to do

Generate a new key pair on the device, or delete the existing device first, then repeat with a new idempotency key.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/vpn_key_exists",
    "title": "A device with this public key already exists",
    "status": 409,
    "code": "vpn_key_exists",
    "request_id": "a277dcd1ca652c65"
}

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