Errors

idempotency_key_in_progress

409: Send with this Idempotency-Key in progress.

Send with this Idempotency-Key in progress. Answered with 409.

What it means

Another request with the same Idempotency-Key holds it: it is submitting the mail this minute, or it broke off while submitting and its hold has not run out yet. Nothing was sent by this request. The hold lasts a few minutes at most, and until it ends nobody can know whether that mail went out.

What to do

Send the same request with the same Idempotency-Key again after the Retry-After header's seconds. It then answers with the first send's message_id if that mail went out, and sends it if it did not. Switching to a new key could send it twice.

The body

{
  "type": "https://tigby.eu/problems/idempotency_key_in_progress",
  "title": "Send with this Idempotency-Key in progress",
  "status": 409,
  "detail": "…what was refused, naming this request's own values",
  "code": "idempotency_key_in_progress",
  "doc_url": "https://docs.tigby.eu/errors/idempotency_key_in_progress",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.