Cases are never created over REST (always 405)
POST/exceptions
There is deliberately no POST /exceptions: every case opens
from a consumed fact (ADR 0001), and a repeated fact touches the open
case (occurrence count, lastSeenAt) instead of opening another.
Like every POST of the fleet it sits behind the idempotency
middleware: the Idempotency-Key is demanded first (400
idempotency-key-required when absent), then the router answers
405 method-not-allowed naming GET as the allowed method. The 405
is a deterministic answer and is stored: the same key and request
replays it with Idempotency-Replayed: true, the same key with a
different request is 409 idempotency-key-reused.
Request
Responses
- 400
- 405
- 409
Malformed JSON body, an unknown field, an invalid path, query or header parameter, or a NUL byte in a body.
Case creation does not exist; every case comes from a consumed fact.
Response Headers
The methods the resource accepts; always GET.
true when this response is the stored answer of an earlier request with the same Idempotency-Key and the same method, path and body (the handler did not run again). Absent on the first execution. The stored answer is replayed for 24 hours after the first execution; past that window the key is free again and a repeat executes anew.
The case is in the wrong state for the command, another request changed it first, or the Idempotency-Key was already used with a different request (idempotency-key-reused; within the 24-hour replay window — past it the key is free again).