Include all of your grounds for relief and all of the facts that support each ground for relief in this petition. Habeas corpus is a kind of petition that you can file in federal court to claim that your imprisonment violates federal law.On May 30, 2007, petitioner filed the instant federal application for habeas corpus relief. A 2254 writ is filed when a person who has been convicted in state court wants to challenge their detention in federal court. We have updated our forms. Please make sure you download the latest version. A 2254 petition must be filed in the federal district court that has jurisdiction over the county where the conviction occurred. 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. Experience with federal habeas corpus review of state convictions. Writs of Habeas Corpus. Archives. ▷2024.