terms_offer_expired: The terms offer is outside its validity window

The stream was opened before the offer's issuedAt or after its expiresAt. Nothing is opened.

What to do

On the wire

HTTP 409, error type state_error.

On a stream open (POST /owner/v1/budgets/{id}/streams) the body carries errorDetail only when the request sends Dynamo-Error-Detail: 1. With the header:

{
  "error": "state",
  "reason": "terms_offer_expired",
  "detail": "…",
  "errorDetail": {
    "type": "state_error",
    "code": "terms_offer_expired",
    "message": "…",
    "param": "terms",
    "doc_url": "…/errors/terms_offer_expired.md",
    "fix": "the terms offer is outside its validity window; the payee issues a fresh offer"
  }
}

See all error codes.