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. A Writ of Habeas Corpus is used to appeal a court decision or to challenge conditions of probation or parole. R WHERE TO FILE: The petition is filed first in the superior court where you were sentenced. A federal writ of habeas corpus is a legal remedy available to state and federal prisoners who object to their detention or imprisonment. A federal writ of habeas corpusmust be filed within one year and 90 days after losing a case in the California Supreme Court. A writ of habeas corpus petition is a tool that individuals convicted of criminal offenses in California can use to challenge their imprisonment. Our law firm's Criminal defense attorneys will formulate a strong appeal of your criminal conviction or a writ of habeas corpus. The second copy is to be filed in the incarcerated person's custody record.