what is the constitutional right of habeas corpus

Habeas corpus is a legal principle that ensures an individual's right to be free from unlawful detention or imprisonment. It is a constitutional right that allows individuals to challenge the legality of their detention by requesting a court to determine if there is sufficient cause or justification for their imprisonment. This right is enshrined in the U.S. Constitution in Article I, Section 9, and it is considered a fundamental protection of individual liberty and due process.