In all cases of certiorari upon the judgment of any inferior court or tribunal, and the cases of appeal from the judgment of a board or supervisors, of a court of unlawful entry and detainer, of any municipal board or court, the successful party shall be entitled to recover full costs; but the circuit court may, when the circumstances of the case justify it, tax the costs to meet the ends of justice.