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). You should use this form if.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? ☐Article of the Family Court Act. Docket No. ☐Section of the Social Services Law. Mohaseb Khan has filed a writ petition seeking a writ of habeas corpus to direct the respondents to produce his legally wedded wife Aleefa Khan. Print it underneath. In this application form: 1. If they are all from the same proceedings, must fill out a separate form for each cause number.