Peak problem types
Home / homematch / idempotency_key_required

The request needs an Idempotency-Key.

Code
idempotency_key_required
Type
https://problems.peakintelligence.ch/homematch/idempotency-key-required
Status
400 Bad Request
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

This write route requires an Idempotency-Key header and the request carried none, so nothing was done. Generate one key per intent (a UUID works), send it in the header, keep it until the server has answered, and send it again with every retry of that same intent. This is a client defect: fix the request rather than retrying it unchanged.

Example

HTTP/1.1 400 Bad Request
Content-Type: application/problem+json

{
  "type": "https://problems.peakintelligence.ch/homematch/idempotency-key-required",
  "title": "The request needs an Idempotency-Key.",
  "status": 400,
  "code": "idempotency_key_required",
  "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