This petition must be clearly handwritten in ink or typed. You should exercise care to make sure all answers are true and correct.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. Learn how a writ of habeas corpus can challenge unlawful detention, potentially reducing or overturning convictions even after appeals fail. A writ of habeas corpus is a legal order that requires the custodian to bring the detained individual before a court or judge. Understand the key differences between an appeal and a writ of habeas corpus, including their purposes, processes, and when to use each in legal cases. All petitions for writ of habeas corpus shall be filed at the courthouse specified in the administrative order referenced above. The evidence presented in the State court proceeding. All petitions for writ of habeas corpus shall be filed at the courthouse specified in the administrative order referenced above.