Connecticut Application and Writ, Habeas Corpus Ad Testificandum, is a legal document issued by the Supreme Court of Connecticut or a Connecticut Superior Court judge. It is used to order the production of a person in the custody of another person or entity to appear before the court. Through this writ, a judge can examine the legality of the person's detention and determine if it is in violation of the person's constitutional rights. There are two types of Connecticut Application and Writ, Habeas Corpus Ad Testificandum: the first is an Original Writ, which is used to bring the person to the court and is issued by the Supreme Court of Connecticut. The second is an Order to Show Cause, which is issued by a Superior Court judge and can be used to seek a hearing on the legality of the person's custody. Both documents are served to the custodian of the person and can be executed by a Constable or Sheriff, and require the custodian to bring the person to the court for a hearing.