A writ issued to secure the release of a person found to be detained illegally is Habeas corpus. A writ of Habeas corpus (which literally means to ‘produce the body’) is a court order to a person or agency holding someone in custody (such as a warden) to deliver the imprisoned individual to the court issuing the order and to show a valid reason for that person’s detention