The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. How do I file a Petition for Writ of Habeas Corpus Re: Quarantine Order?To file a habeas action, send the court the following items: â–« Your original, completed petition form. Habeas corpus refers to the principle of freedom from unlawful detention. On this page below is a list of LOCAL forms that can be completed online and then printed. The form you need may be in this list. Habeas Corpus Petition. All rights reserved. They must have also filed a direct appeal to the appellate court and then to the California Supreme Court.