terms_signer: The breach signers are not usable

Every breach signer you name must be a catalogue signer for at least one offered metric, and every offered metric must have one. On a contract v2 budget the stream also takes exactly one distinct breach signer, because contract v2 binds one signer per stream on chain. Nothing is opened. A signers list that is empty, longer than 16 or holds a value that is not an address answers 400 invalid_request first.

What to do

On the wire

HTTP 409, error type state_error.

On a stream open the body carries errorDetail only when the request sends Dynamo-Error-Detail: 1. With the header:

{
  "error": "state",
  "reason": "terms_signer",
  "detail": "…",
  "errorDetail": {
    "type": "state_error",
    "code": "terms_signer",
    "message": "…",
    "param": "terms",
    "doc_url": "…/errors/terms_signer.md",
    "fix": "name 1 to 16 breach signers that the catalogue lists for every offered metric"
  }
}

See all error codes.