The defendant before pleading in all cases may by motion demand and require the plaintiff or intervenor to give security for the cost in such case, and on failure to do so within the time fixed by the court such suit or intervention, as the case may be, shall be dismissed without prejudice. This section shall not apply to the Parish of Orleans and to cases brought in forma pauperis, nor to the state or any political subdivision thereof.
La. R.S. § 13:4522