Petition for Relief From a Conviction or Sentence By a Person in State Custody (Petition Under 28 U. S. C. § 2254 for a Writ of Habeas Corpus). PETITION FOR A WRIT OF HABEAS CORPUS UNDER 28 U.S.C. § 2241. Instructions. 1.Who Should Use This Form. Though subject to different rules, incarcerated people in both state or federal custody may petition for a federal writ of habeas corpus. What Is Habeas Corpus? Issues which may be raised on habeas corpus; timeliness requirements for filing the writ; format and specific Sixth District's procedures. No. PETITION FOR WRIT OF HABEAS CORPUS AD TESTIFICANDUM. Habeas Corpus (Civil or Criminal). X. X. X. MR. Miscellaneous Remedy. X. X. MR. Miscellaneous Remedy.