To use this form, you must be a person who is currently serving a sentence under a judgment against you in a state court. The Writ of Habeas Corpus demands that requires a prisoner must go before the court to determine if there is lawful authority to detain the prisoner.Local Rule of Civil Procedure (LRCiv) 3.5(a) provides that habeas corpus petitions must be filed on the courtapproved form. Only people in custody under the sentence of a Federal court may file motions pursuant to 28 U.S.C. 2255 to vacate their convictions or sentences. Our Phoenix post-conviction relief lawyer assists Arizona defendants in filing for a writ of habeas corpus. A Writ of Habeas Corpus is a motion which is filed most frequently to ensure that a Defendant's imprisonment or detention is not illegal. "Petition for a Writ of Habeas Corpus" Form and the Memorandum. The actual petition is just a legal document the prisoner files in court that explains the problem and the prisoner's request. I need help filling it out. He is in wayne county jail, the other case is in macomb county.