Errors

message_id_invalid

400: Not a Message-ID. in_reply_to, or an entry of references, is not a Message-ID.

Not a Message-ID. Answered with 400.

What it means

in_reply_to, or an entry of references, is not a Message-ID. Both are written into the message's headers as they stand, so each is held to the shape of one: once one pair of angle brackets is taken off, text, one @ and text, with no space, no line break or other control character, and no further angle bracket. Nothing was sent, and an Idempotency-Key sent with the request was not taken.

What to do

Send each id as the message it names carried it, with or without its angle brackets (one in in_reply_to, one per entry in references) and leave the field out when there is none to give. The detail names the field that was refused.

The body

{
  "type": "https://tigby.eu/problems/message_id_invalid",
  "title": "Not a Message-ID",
  "status": 400,
  "detail": "…what was refused, naming this request's own values",
  "code": "message_id_invalid",
  "doc_url": "https://docs.tigby.eu/errors/message_id_invalid",
  "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.