Habeas corpusHabeas corpus (ˈheɪbiəs_ˈkɔrpəs; from Medieval Latin, that you have the body) is a recourse in law through which a person can report an unlawful detention or imprisonment to a court and request that the court order the custodian of the person, usually a prison official, to bring the prisoner to court, to determine whether the detention is lawful. The writ of habeas corpus was described in the eighteenth century by William Blackstone as a "great and efficacious writ in all manner of illegal confinement".