recourse_exists: A case is already open on this fact

Each fact carries at most one open case at a time. Nothing was opened.

What to do

On the wire

HTTP 409, error type state_error. Without Dynamo-Error-Detail: 1 every client receives {"error": "state", "reason": "recourse_exists", "detail": "…"} with no errorDetail: the owner and payee recourse routes add it only when the request sends that header, on a single-tenant core and on the hosted tier alike.

With Dynamo-Error-Detail: 1:

{
  "error": "state",
  "reason": "recourse_exists",
  "detail": "…",
  "errorDetail": {
    "type": "state_error",
    "code": "recourse_exists",
    "message": "…",
    "param": "case",
    "doc_url": "…/errors/recourse_exists.md",
    "fix": "a case is already open on this fact; resolve or escalate it first"
  }
}

See recourse and all error codes.