Raise exception if status change is invalid