The procedure for filing a petition for a writ of habeas corpus is spelled out in the CPLR Article 70. Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights.Petition for Writ of Habeas Corpus. A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment. Access to Forms The Superior Court of Orange County offers several options to assist the public in completing court forms. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. How Do I Fill Out the Form? There is an official form (Judicial Council Form HC-001) for filing a state petition for writ of habeas corpus. I am authorized to file this petition for writ of habeas corpus on behalf of petitioner, Edward. Petitioner is confined pursuant to the judgment of the Orange County Superior Court in Case No. 94ZF0036, entered on July 31,. 1996.