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).It provides an expeditious remedy for correcting erroneous sentences without resort to habeas corpus. Federal prisoners may file two different kinds of motions for post-conviction relief: "Section 2255 motions" and "Section 2241 habeas corpus petitions." Federal Writ of Habeas Corpus For Those In Federal Custody 28 USCA 2255. Appeals; habeas corpus § 2255; INS petitions to stay; deportation and prison transfers; clemency petitions. Distribute the Federal Criminal Law. News. Tion 2255 of title 28 of the.