All error codes

invalid_idempotency_key

HTTP 422 Idempotency-Key is malformed

What happened

The Idempotency-Key header itself is malformed. It must be 8 to 255 characters and contain printable ASCII only: no spaces, no line breaks, no non-ASCII characters.

What to do

Send a key that fits those rules, a UUID for instance, and repeat the request. Nothing was executed, so no state changed.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/invalid_idempotency_key",
    "title": "Idempotency-Key is malformed",
    "status": 422,
    "code": "invalid_idempotency_key",
    "request_id": "a277dcd1ca652c65"
}

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