The defendant in any cause may require the plaintiff or party prosecuting the cause to give bond or other security, in such amount as may be fixed by the court, to secure the repayment on the final termination of the cause of all costs expended by the defendant therein. The order requiring such bond or security for costs shall issue ex-parte on the application of the party, without costs, and no further proceeding shall be had in the cause until such bond or security has been furnished. The court shall fix the delay within which such bond or security for costs shall be furnished, and the failure to furnish it, within such delay, shall operate a dismissal of the cause as in case of non-suit. In all cases the surety for costs shall be considered a party to the cause and shall be condemned for the amount of costs recoverable in solido with the party cast in the final judgment in the cause.
La. R.S. § 13:1215