6-3. Sureties on prosecution bonds liable for costs.

When an action is brought in any court in which security is given for the prosecution thereof, or when any case is brought up to a court by an appeal or otherwise, in which security for the prosecution of the suit has been given, and judgment is rendered against the plaintiff for the costs of the defendant, the appellate court shall also give judgment against the surety for said costs, and execution may issue jointly against the plaintiff and his surety. (1831, c. 46; R.S., c. 31, s. 133; R.C., c. 31, s. 126; Code, s. 543; Rev., s. 1251; 1913, c. 189, s. 1; C.S., s. 1227.)