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). This form is included in the appendix to this Guidebook.You must file a civil cover sheet when you file your petition. It provides an expeditious remedy for correcting erroneous sentences without resort to habeas corpus. Before you can file a motion under §2255, you must be in custody under federal law. For a federal prisoner who wishes to vacate, set aside, or correct her sentence, the first step is to file a 28 USC 2255 motion. Case reports, free online sources, complaints and other pleadings, court records, divorce decree information on changing the law, judges' reversal rates. A federal 2255 motion is a form of habeas corpus relief through which an inmate can challenge their conviction or their sentence in federal court. Must file separate motions as to each judgment in the appropriate district. Initially, § 2255 aimed solely to clean up a jurisdictional mess.