Peak problem types
Home / homematch / idempotency_key_reused

The Idempotency-Key was used for another request.

Code
idempotency_key_reused
Type
https://problems.peakintelligence.ch/homematch/idempotency-key-reused
Status
422 Unprocessable Content
Audience
client. Only the calling software can act on it. A client shows its own general failure and quotes traceId; detail is in English, for developers.
Service
homematch

Description

The same Idempotency-Key was first sent with a different request, for example another route or another body, so the server does not know which one to replay. Nothing was done. A changed intent takes a new key; reuse a key only to retry the identical request. This is a client defect.

Example

HTTP/1.1 422 Unprocessable Content
Content-Type: application/problem+json

{
  "type": "https://problems.peakintelligence.ch/homematch/idempotency-key-reused",
  "title": "The Idempotency-Key was used for another request.",
  "status": 422,
  "code": "idempotency_key_reused",
  "audience": "client",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}

A real answer also carries detail when there is something to say about this occurrence, and may carry errors or members of the type's own, which the service's OpenAPI document describes. When to ask again is the Retry-After header.

Declared by