If the defendant or defendants in suits brought under the provisions of sections 527.150 and 527.160 shall make default, or appearing, shall by answer admit the fact as stated in the petition and consent to judgment as prayed for, the plaintiff shall be adjudged to pay all costs of the suit.
§ 527.170, RSMo