Petition for a Writ of Habeas Corpus under 28 USC 2241. Category Representing Yourself (Pro Se).Petition for Writ of Habeas Corpus. 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. Most Maryland court forms and brochures are available in this index. Petition Under 28 U.S.C. § 2254 for a Writ of Habeas Corpus. The Document Center provides easy access to public documents. Click on one of the categories below to see related documents or use the search function. These court forms allow you to file and respond to court cases. Use the links below to find forms and to get help completing your forms.