pub fn invalid_state_error(current_state: &str, expected_state: &str) -> Error
Common pattern for state transition errors