Docs / Errors
IDEMPOTENCY_KEY_REUSED
409Idempotency key reusedWhy it happens
You sent an Idempotency-Key that an earlier request of your organization already used, with another body. A key names one request: its retries must carry the same body. Nothing was done.
What to do
- Mint a new key (a UUID) for each new request, and keep it only for that request's retries.
- If you meant to retry, send the exact body of the first request again, with the same key.
Example response
HTTP/1.1 409
{
"type": "https://hub.masjidbox.com/docs/errors/IDEMPOTENCY_KEY_REUSED",
"title": "Idempotency key reused",
"status": 409,
"detail": "The Idempotency-Key was already used with another body. Nothing was done: use a new key for a new request.",
"instance": "/v1/masjids/msj_abc123defg",
"code": "IDEMPOTENCY_KEY_REUSED",
"requestId": "req_8f14e45fceea167a5a36dedd4bea2543",
"requestLogUrl": "https://hub.masjidbox.com/console/logs/req_8f14e45fceea167a5a36dedd4bea2543"
}