It tests the legality of a detention or a restraint and the goal is to use it really almost i guess it's an emergency basis. Writ of Habeas Corpus a civil case number and assign it to the judge assigned to the pending writ with the lowest case number.The Habeas Corpus petition claims the arrest, sentence, or trial violated constitutional law, making imprisonment unlawful. Habeas Corpus means a demand to produce the body whether dead or alive. Initiate the sanity proceedings set out in section 922.07, Florida Statutes) (1985). Translated from Latin it means "show me the body. The purpose of the remedy sought in a writ of habeas corpus is to determine the legality of the restraint under which a person has been held. 361 So. 2d 135, 137 n. Habeas corpus is used to challenge the legality of the detention or restraint of a person and to obtain the person's prompt release. This petition, called a writ of Habeas Corpus, is filed in Federal Court (US District Court ) whether you are serving time in a federal or state prison.