The petitioner shall pay the costs in the following proceedings:
(1) In petitions for draining or damming lowlands where the petitioner alone is benefited.
(2) In petitions for condemnation of water millsites when the petitioner is allowed to erect the mill; but when he is not allowed to erect the mill, the costs shall be paid by the person who is allowed to do so.
(3) In petitions for condemnation of land for railroads, street railways, telegraph, telephone or electric power or light companies, or for water supplies for public institutions, or for the use of other quasi-public or municipal corporations; unless in the opinion of the superior court the defendant improperly refused the privilege, use or easement demanded, in which case the costs must be adjudged as to the court may appear equitable and just.
(4) When the petition is refused. (Code, ss. 1299, 1855, 2013; 1893, c. 63; 1903, c. 562; Rev., s. 1269; C.S., s. 1245; 1945, c. 635.)