Use this form to challenge the manner in which your sentence is being carried out or to challenge your detention in a facility other than a prison. Instructions and form for filing a petition for writ of habeas corpus under 28 USC § 2254.A § 2254 petition is a motion for a writ of habeas corpus. This motion cannot be filed until the applicant has exhausted the remedies available. Contents. Introduction, 1. Initiation of the Case, 2. Petition For Writ Of Habeas Corpus (Under 28 USC 2241) Form. This is a Maryland form and can be use in District Court Federal. Habeas corpus is a kind of petition that you can file in federal court to claim that your imprisonment violates federal law. Use this form to request to view public court records in person at a District Court for multiple cases.