breach_term: The report names a term the stream does not carry
The metric, comparison, threshold, window or unit does not match any of the stream's accepted terms. Nothing moves.
What to do
- Report against one of the stream's terms exactly.
On the wire
HTTP 409, error type state_error.
Only the breach report routes answer this code: POST /owner/v1/streams/{id}/breach-reports (1.7.0) and, where the deployment serves it, the oracle's POST /oracle/v1/attest/breach (1.8.0). Both send errorDetail to every client, with or without Dynamo-Error-Detail: 1:
{
"error": "state",
"reason": "breach_term",
"detail": "…",
"errorDetail": {
"type": "state_error",
"code": "breach_term",
"message": "…",
"param": "report",
"doc_url": "…/errors/breach_term.md",
"fix": "the report's metric, comparison, threshold, window or unit is not one of the stream's terms"
}
}
See all error codes.