Who Can File a State Habeas Corpus Petition? The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully.A writ of habeas corpus petition is a tool that individuals convicted of criminal offenses in California can use to challenge their imprisonment. There is generally no time limit to file a common law writ petition for mandate or prohibition relief. 60 days is theusual outside time limit. (LD 12, 13, 14.) Petitioner filed a petition for writ of habeas corpus in the Sacramento County Superior Court on February 22, 2016. The proper Court to issue the Writ of Habeas Corpus is the Court wherein Petitioner is illegally confined. Upon Charles' petition this court issued a writ of habeas corpus and the child was produced responsive to that writ. That a Writ of Habeas Corpus issue out of this Court;. 2. Petitioner, who is proceeding pro se, brings this petition for a writ of habeas corpus pursuant to 28 U.S.C. § 2254.