If any person shall take an appeal from a judgment of any court to the supreme court, or to any district of the court of appeals, and the judgment shall be affirmed or the appeal discontinued or dismissed, the appellee shall recover his costs; and if the judgment be reversed, the appellant shall recover his costs.
§ 514.160, RSMo