https://www.thefreedictionary.com/habeas+corpus
1. A writ that a person may seek from a court to obtain immediate release from an unlawful confinement, as when the confinement has occurred through a means that violated the person’s constitutional rights.
2. The right of a person to obtain such a writ.