The Writ of Habeas Corpus demands that requires a prisoner must go before the court to determine if there is lawful authority to detain the prisoner. Local Rule of Civil Procedure (LRCiv) 3.5(a) provides that habeas corpus petitions must be filed on the courtapproved form.Habeas corpus is a procedural device to bring child custody matters before a court. What Is a Writ of Habeas Corpus? This petition, called a writ of Habeas Corpus, is filed in Federal Court (US District Court ) whether you are serving time in a federal or state prison. Click on the different category headings to find out more and change our default settings. If you win a habeas petition, the federal court could either order your release or a special bond hearing before the immigration judge. What is "habeas corpus"? Federal criminal defense explains a federal Habeas Corpus petition, a legal remedy to protect against someone's unlawful and indefinite imprisonment. What is the Writ of Habeas Corpus?