The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. Any order denying a petition for writ of habeas corpus must contain a brief statement of the reasons for the denial.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 petition for writ of habeas corpus is a legal action that allows individuals to challenge their unlawful imprisonment or restraint. A writ of habeas corpus pursuant to this section is the exclusive procedure for collateral attack on a judgment of death. A successful Writ of Habeas Corpus may result in a reduction of a prison sentence, a new trial, or even a person's freedom. As appellate counsel, we are all familiar with petitions for writs of habeas corpus. FORMS TO FILL OUT BEFORE GRIEVANCES: You must complete all the following forms that apply to your complaint before filing a grievance. For Writ of Habeas Corpus.").