Order On Motion for Sibling Placement or Contact. 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).To execute a NY writ of habeas corpus in a child custody case, is a Virgina order needed? 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. First, after preparing the papers, was filing with the Court; all Writs are a new proceeding, with the need to purchase a new Index number and file an RJI. This wrongful detention could be in violation of someone's custody or parenting time order. What is a Habeas Corpus petition in New York? The Writ of Habeas Corpus is not the appropriate remedy. She should file (a) a Motion for Enforcement and request the court for a Capri. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court.