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. 1. Notice of appeal 2.Issues which may be raised on habeas corpus; timeliness requirements for filing the writ; format and specific Sixth District's procedures. A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment. 3. If you are incarcerated in a federal prison, you cannot file for state habeas corpus. You must file a petition for federal habeas corpus. To file a habeas corpus petition, you must prepare a written request to a court or judge, known as a writ of habeas corpus. The method used is habeas corpus. State Prisoners in Federal Criminal Cases. The U.S. Marshal will transport, maintain custody, and produce a state prisoner in a federal criminal action.