(A) On filing, the clerk of the court must immediately deliver the petition to the presiding judge or his or her designee. 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. Generally speaking, the writ of habeas corpus is available in any case where the trial court has acted in excess of its jurisdiction. A writ of habeas corpus is designed to be an effort of last resort to overturn a wrongful conviction. A Writ of Habeas Corpus is used to appeal a court decision or to challenge conditions of probation or parole. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. A Federal Writ of Habeas Corpus is the final avenue for review of issues that were denied in California state courts. A writ of habeas corpus is a petition that an individual uses to challenge their conviction or sentence in California. ❖Complete Petition for Writ of Habeas Corpus.