There is no filing fee associated with this filing. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully.Habeas corpus refers to the principle of freedom from unlawful detention. A federal writ of habeas corpus is a legal remedy available to state and federal prisoners who object to their detention or imprisonment. 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. Why Is Habeas Corpus Important? The watch commander will then have the original copy of the J-126 form filed in the inmate's custody record. What Is a Writ of Habeas Corpus. See ADI Criminal Appellate Practice Manual, § 8.84 et seq.