To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. First, a U.S.C. § 2254 allows us to file a petition for Habeas Corpus when the client is in custody under sentence of a state court and is in a state prison.To petition for writ of habeas corpus, please complete the appropriate form. File property tax petitions to appeal property tax assessments. Find petition forms from property tax court. Minnesota Statutes Chapter 589, Habeas Corpus; Index topic Habeas Corpus. Boylan, on Petition. Where to file the petition is the first consideration and can be a complex matter.