Oklahoma Writ of Habeas Corpus (2241 — Federal Custody) is a legal document that is filed in federal court to challenge the legality of a person’s detention or imprisonment. It is used to challenge the legality of a conviction or sentence imposed by a state court, and is used to seek relief from federal custody. This writ is typically used when an individual believes they have been wrongfully convicted or detained by a state court, or when an individual has been denied due process or a fair trial. This writ can be used for any district court in the United States, including the Northern, Eastern, Western, and Southern Districts of Oklahoma. The two types of Oklahoma Writ of Habeas Corpus (2241 — Federal Custody) are: 1) the 28 U.S.C. 2254 areas petition, which challenges the constitutionality of a state court conviction or sentence, and 2) the 28 U.S.C. 2255 areas motion, which challenges the legality of an individual’s federal detention, conviction, or sentence. Both types of habeas corpus petitions must be filed with a federal district court in the district where the conviction or sentence was imposed or where the individual is being held in custody.