25-10-701. Public officers not to be personally taxed. No officer prosecuting or defending as provided in 25-10-405 shall be taxed with costs or damages, but such costs or damages, if any, shall be taxed to the state, county, or municipality, as the case may be.