Forms Find a national federal court form that can be used in all federal courts. If you want to challenge your immigration detention, you may use the form Petition for a Writ of Habeas Corpus under 28 U.S.C. § 2241 (For Immigration Matters).Federal prisoners may file two different kinds of motions for post-conviction relief: "Section 2255 motions" and "Section 2241 habeas corpus petitions." It provides an expeditious remedy for correcting erroneous sentences without resort to habeas corpus. PostAEDPA AccesstotheCourts Demand for a Constitutional Right to Counsel in. Against Defendants alleging various federal and state law claims.