In United States law, habeas corpus is a recourse challenging the reasons or conditions of a person's confinement under color of law. The purpose of this order is to ensure that the detainee is not being held unlawfully or without sufficient cause.Habeas Corpus, literally meaning "produce the body," grants prisoners the right to appear in a court of law in order to challenge their imprisonment. Habeas corpus is a Latin phrase meaning "produce the body. The Habeas Corpus petition claims the arrest, sentence, or trial violated constitutional law, making imprisonment unlawful. The writ of habeas corpus provides protection against unlawful arrest and detention. Habeas corpus means, literally,"you have the body. The "Great Writ" of habeas corpus is a fundamental right in the Constitution that protects against unlawful and indefinite imprisonment. The method used is habeas corpus. The writ of habeas corpus (the right to challenge unlawful detentions); "The liberty of the press shall be inviolably preserved.