invalid_transition
What happened
This action isn’t allowed in the current state. The record needs to be in a specific status before this step can happen.
Technical background
UnprocessableError from guardTransition: a state-machine transition
was rejected because the current state isn’t in the allowed source
states.
details.from, details.to and details.validTargets carry the
diagnostics. Define allowed transitions in
r.entity({ stateMachine: ... }),
or check the current state before calling.