A party may commence a certiorari action when authorized by statute or when the party claims an inferior tribunal, board, or officer, exercising judicial functions, or a judicial magistrate exceeded proper jurisdiction or otherwise acted illegally.
Iowa. R. Civ. P. 1.1401