6. Mail the completed petition and one copy to the U. S. District Clerk. Available as both a PDF and Word document.Petition for a Writ of Habeas Corpus Under 28 U.S.C. § 2241. § 2241 is to allow individuals in federal or state custody to challenge the legality of their detention. That same day, Petitioner submitted a second habeas petition (on the form for seeking relief under 28 U.S.C. § 2241). Doc. 6. This practice advisory addresses the nuts and bolts of immigration habeas petitions under the civil habeas statute, 28 U.S.C. § 2241.