There is no filing fee associated with this filing. R WHERE TO FILE: The petition is filed first in the superior court where you were sentenced.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. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. A Writ of Habeas Corpus is used to appeal a court decision or to challenge conditions of probation or parole. Here you will find court forms that are commonly used in the Southern District Court of California. A writ of habeas corpus petition is a tool that individuals convicted of criminal offenses in California can use to challenge their imprisonment. He is Petitioner's immediate custodian and resides in the judicial district of the United States Court for the Western District of Texas, San Antonio Division. Here you will find court forms that are commonly used in the Southern District Court of California.