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?To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. A writ of habeas corpus is a legal order that requires the custodian to bring the detained individual before a court or judge. It tests the legality of a detention or a restraint and the goal is to use it really almost i guess it's an emergency basis. In child custody cases, parents or guardians can use the writ of habeas corpus to contest the legality of custody arrangements. For the foregoing reasons, the Court adopts the R R of Magistrate Judge Dolinger in its entirety and DENIES Howithi's Petition for a Writ of Habeas Corpus. The service of a Writ of Habeas Corpus only requires the officer to deliver the Writ without any officer enforcement. After a person files a writ of habeas corpus application with the court, a copy will be served to the prosecutor in the original criminal case. You should use this form if.