Connecticut Application for a Writ of Habeas Corpus — 2254 (by a Person in State Custody) is a legal document that is used to challenge a person’s detention or conviction in a criminal case. It is filed by someone in state custody who believes that their detention or conviction is unlawful or in violation of their rights. The writ of habeas corpus is a form of legal remedy that can be used to challenge the constitutionality of a conviction or the legality of a person’s detention. There are two main types of Connecticut Application for a Writ of Habeas Corpus — 2254 (by a Person in State Custody): 2254(d) and 2254(e). 2254(d) is used to challenge a conviction or sentence based on a violation of the Constitution or federal law, such as ineffective assistance of counsel. 2254(e) is used to challenge a conviction or sentence based on a violation of state law. Both types of applications require the petitioner to provide detailed information about the facts of the case, the legal issues being challenged, and the relief sought.