Forms Find a national federal court form that can be used in all federal courts. Pay.gov Application for Refund (CAND) (.Habeas corpus is a kind of petition that you can file in federal court to claim that your imprisonment violates federal law. 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. A federal prisoner can only bring a habeas petition under § 2241 after exhausting administrative remedies through the Bureau of Prisons. See. This document provides instructions for filing a motion to vacate, set aside, or correct a federal sentence under 28 U.S.C. § 2255. Seled petition for writ of habeas corpus in the United. Justice took no part in the consideration or decision of this petition. United States Courts Opinions.