message_claimed
409: Message already claimed. Another claim on the message stands.
Message already claimed. Answered with 409.
What it means
Another claim on the message stands. The first claim on a message wins and every later one is refused, whichever key makes it; two Instances sharing one Identity Key cannot tell their claims apart, and neither can a retry after a lost response. The detail names when the standing claim was made and under which key, so a stale one can be recognised. A claim lasts until it is released or the message leaves the Inbox; it has no lease that runs out.
What to do
Leave the message to the Instance that claimed it. If the claim is stale (its key revoked, or the Instance behind it gone) release it with DELETE /api/identities/{handle}/messages/{id}/claim and claim it again.
The body
{
"type": "https://tigby.eu/problems/message_claimed",
"title": "Message already claimed",
"status": 409,
"detail": "…what was refused, naming this request's own values",
"code": "message_claimed",
"doc_url": "https://docs.tigby.eu/errors/message_claimed",
"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.