Petition for Writ of Habeas Corpus. You should use this form if.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). ☐Article of the Family Court Act. Docket No. ☐Section of the Social Services Law. Print it underneath. 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? Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights. People who are at risk of going missing, including people with dementia, people with mental health issues and vulnerable children and adults.