Habeas Corpus Petitions: Action filed when relief sought would release petitioner from custody or shorten his confinement. If you want to submit any legal arguments, you must submit them in a separate memorandum.Where should the habeas corpus petition be filed? Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. Upon receipt of the appropriate filing fee or if permission to proceed in forma pauperis has been granted, your petition will be filed if it is in proper order. Habeas corpus is a kind of petition that you can file in federal court to claim that your imprisonment violates federal law. A petition brought under this article must be filed in the superior court of the county in which the petitioner is being detained. 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.