Indiana Petition for Writ of Habeas Corpus Under 28 U.S.C. 2254 is a legal document that is filed by an individual who is challenging the legality of their state or federal detention. This petition is used to challenge any kind of unlawful or unconstitutional imprisonment. This petition is filed in the district court where the person is incarcerated. The petition can be used to challenge the procedures that were used to bring the person into custody, the conditions of their confinement, or the legality of their conviction. There are two types of Indiana Petition for Writ of Habeas Corpus Under 28 U.S.C. 2254. The first is an original habeas corpus petition which is used to challenge the legality of a person's detention. This type of petition is filed in the district court where the person is incarcerated. The other type of petition is a successive habeas corpus petition which is used to challenge the legality of a person's conviction. This type of petition is filed in the court of appeals.