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 Writ of Habeas Corpus.☐Article of the Family Court Act. Docket No. ☐Section of the Social Services Law. You should use this form if. Other ways of attacking your conviction include filing an appeal, or a state or federal writ of habeas corpus. Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights. 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?