What Is a 2255 Petition, and How Does It Differ From a 2254 Petition?

FAQs, Habeas Proceedings

A 2255 petition may be filed by a person in federal custody to challenge a federal criminal conviction and/or sentence.  Unlike a 2254 petition, which challenges a state-court conviction and/or sentence, a 2255 petition is not limited to federal constitutional claims.  28 U.S.C. § 2255 provides that it may be used to raise claims that your sentence or conviction was unauthorized under any law of the United States.