In case any person, against whom any such information in the nature of a quo warranto shall be prosecuted, shall be adjudged guilty of any usurpation of, or intrusion into, or unlawfully holding and executing any office or franchise, it may be lawful for the court as well to give judgment of ouster against such person from any of the said offices or franchises, as to fine such person for his usurpation of, intruding into or unlawfully holding and executing any such office or franchise, and to give judgment that the relator in such information named shall recover his costs of such prosecution; and if judgment shall be given for the defendant in such information, he shall recover his costs against such relator.
§ 531.050, RSMo