A Minnesota (AO 242) Petition for Writ of Habeas Corpus — 2241 is a document used by an individual to challenge their detention or imprisonment. It is a legal document that is filed in federal court and allows a person to seek relief from unlawful or unconstitutional confinement. This type of petition is available to individuals who are being detained by state or federal authorities, such as in prison or immigration detention. The petition typically requests a writ of habeas corpus, which is a court order requiring the government to explain its legal justification for the confinement. There are two types of Minnesota (AO 242) Petition for Writ of Habeas Corpus — 2241. The first is a petition for writ of habeas corpus ad testificandum, which seeks an order for a prisoner to be brought before a court to testify or answer questions. The second type of petition is a petition for writ of habeas corpus ad subjiciendum, which requests a court order for the release of a prisoner or for the government to explain the legal justification for the prisoner's detention.