The court must rule on a petition for writ of habeas corpus within 60 days after the petition is filed. There is no filing fee associated with this filing.R WHERE TO FILE: The petition is filed first in the superior court where you were sentenced. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. The Local Rules of Practice for the United States District Court for the Southern District of California are listed below. Filing information, such as fees, general filing procedures and pro se procedures, can all be found in the General Filing Procedures Manual below. If the appellate court issues an order to show cause returnable before the superior court, do not use this chart for proceedings after the OSC. Rule. A federal writ of habeas corpusmust be filed within one year and 90 days after losing a case in the California Supreme Court. The proliferation of this writ has created a problem in the federal courts. First, a U.S.C. § 2254 allows us to file a petition for Habeas Corpus when the client is in custody under sentence of a state court and is in a state prison.