This Guidebook is intended to be an informative and practical resource for understanding the basic procedures of the Court. A writ of habeas is not going to accomplish the desired result.A writ of habeas corpus requires that a person who is in custody be brought before a judge or court and that they be able to challenge that custody. A defendant has a right to appeal a final conviction in a misdemeanor, grossmisdemeanor, or felony case to the Minnesota Court of Appeals. To file a habeas corpus petition, you must prepare a written request to a court or judge, known as a writ of habeas corpus. Petition For Writ Of Habeas Corpus (Prisoner) Form. This is a Minnesota form and can be use in District Court Federal. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. Petition for Writ of Habeas Corpus. The petition will be denied or converted to a Habeas Corpus Petition if the defendant attempts to file a writ of Coram Nobis while still in custody.