Costs shall be allowed of course to any defendant, upon a judgment in his favor in the actions mentioned in the last section.
R.L. 1910, § 5230.