A Minnesota (AO 241) Petition for Writ of Habeas Corpus — 2254 is a legal document that is used to request the release of a person from unlawful custody. It is a federal court document that is filed in order to challenge the legality of a person's detention. It is often used when a person is being held in jail or prison without legal authority, or when a person has been denied a constitutional right. The Petition requests a court to order the release of the person from custody and to provide them with relief, such as monetary damages or a new trial. There are two types of Minnesota (AO 241) Petition for Writ of Habeas Corpus — 2254: a Petition for Writ of Habeas Corpus Ad Prosequendum and a Petition for Writ of Habeas Corpus Ad Testificandum. The Petition for Writ of Habeas Corpus Ad Prosequendum is typically used to secure the release of a person for the purpose of appearing in court as a witness. The Petition for Writ of Habeas Corpus Ad Testificandum is typically used to secure the release of a person for the purpose of obtaining a favorable outcome in the court proceedings.