# RUN_NOT_RUNNING

- Surface: API
- HTTP status: 409
- Recommended action: `START_A_RUN`
- Details: `{ runId: string, currentState: "draft" | "ended", attemptedOp: string, recommendedAction: RecommendedAction }`

## Cause

An operation that only a live Run supports (End, for example) was called on a Run that is still a draft or already ended.

## Fix

Check `details.currentState`. A `draft` Run needs Start first; an `ended` Run is terminal, so create a new Run instead of reopening it.

## Related

- [EXPERIMENT_NO_DRAFT](https://splitch.dev/docs/error/EXPERIMENT_NO_DRAFT)
- [RUN_NOT_FOUND](https://splitch.dev/docs/error/RUN_NOT_FOUND)

Source: https://splitch.dev/docs/error/RUN_NOT_RUNNING