Connecticut Petition for a Writ of Habeas Corpus — 2241 (by a Person in Federal Custody) is a legal document used by an individual in federal custody to challenge the legality of their detention. The petitioner is requesting that the court order the federal government to produce the individual in court so that the court can determine whether the detention is lawful. It is a form of relief from unlawful imprisonment. The petition may be filed by the individual who is in custody, or by an attorney or family member on their behalf. There are two types of Connecticut Petition for a Writ of Habeas Corpus — 2241 (by a Person in Federal Custody): an initial petition and a successive petition. An initial petition is filed when the petitioner has never before attempted to challenge the legality of their detention. A successive petition is one that has been filed after an initial petition and is used to challenge a ruling of the court or the actions of the government.