habeas corpus petition as well as petitions for relief from judgment filed pursuant to section 2 — 1401 of the Code of Civil Procedure (735 ILCS 5/2 — 1401 (West 2002)) and mandamus actions. The Second District holds that a trial court commits reversible error by dismissing a habeas corpus petition without giving defendant notice and an opportunity to respond to the trial court’s action and this court cannot look beyond this error to assess the merits of the petition. People v. Winfrey, 347 Ill. App. 3d 987, 808 N.E.2d 589, 590-93 (2d Dist. 2004); see also People v. Pearson, 345 Ill. App. 3d 191, 193-99, 802 N.E.2d 386, 388-93 (2d Dist. 2003), appeal allowed, 208 Ill. 2d 549, 809 N.E.2d 1290 (2004); People v. Gaines, 335 Ill. App. 3d 292, 295-97, 780 N.E.2d 822, 824-25 (2d Dist. 2002) (<HOLDING>); see also People v. Shellstrom, 345 Ill. App.
holding that an appointing authority cannot summarily dismiss a classified employee and that the language  the good of the service to be served thereby  in  36438 has the effect of limiting the valid exercise of that power to dismiss for cause  holding that the district court erred in summarily dismissing a  1983 complaint that should have been brought as a habeas petition holding that a trial court cannot summarily dismiss a section 2  1401 petition holding that on successive posteonviction motions the court may summarily dismiss newlyasserted grounds absent sufficient excuse holding 1 that the district court properly construed one  1983 claim as a habeas petition but improperly summarily dismissed it and 2 that the district court should have construed another  1983 claim as a habeas petition