ClavianAPI errors
All error codes

422 Unprocessable Content

Idempotency key used for a different request

Code
idempotency_key_reused
Status
422 Unprocessable Content
Type
https://errors.clavian.io/idempotency-key-reused

What it means

The Idempotency-Key was already used for a request with a different body. A key belongs to one request.

What to do

To retry, send exactly the same body with the same key. For a new request, send a new key, a fresh UUID.

Example

The API answers with status 422 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.

{
  "type": "https://errors.clavian.io/idempotency-key-reused",
  "title": "Idempotency key used for a different request",
  "status": 422,
  "code": "idempotency_key_reused",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

From the OpenAPI document, every endpoint that names it among its answers: