A writ of habeas corpus in California is where an inmate challenges their conviction or sentencing. The court must rule on a petition for writ of habeas corpus within 60 days after the petition is filed.A petition for writ of habeas corpus is a legal action that allows individuals to challenge their unlawful imprisonment or restraint. 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 is a legal proceeding designed to bring a party before a court to test whether they are being held lawfully. 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 a petition that an individual uses to challenge their conviction or sentence in California. The purpose of the writ is to challenge a conviction often for reasons that might not be evident in the court record. If you want information about federal habeas corpus, send a request to Prison Law Office, General Delivery, San. The purpose of the writ is to challenge a conviction often for reasons that might not be evident in the court record.