What Is Habeas Corpus? The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty.In Texas, the state writ of habeas corpus is a legal mechanism that allows individuals to challenge their detention or imprisonment. A Writ of Habeas Corpus (Latin for "that you have the body") may be filed on behalf of a person who is unlawfully imprisoned. An application for a Writ of Habeas Corpus is filed when a person seeks relief from unlawful detention or imprisonment. A writ of habeas corpus is a legal tool used to enforce a superior right of possession to a child. In a writ of habeas corpus, a defendant seeks to establish that his or her prison sentence is illegal. This can be done in two ways. Understand the intricacies of writ of habeas corpus Texas with GHC Law Firm, including procedures, eligibility, and how a lawyer can help. In Texas, a writ of habeas corpus is a court order in which the judge demands a law enforcement agency to produce a detainee for a court hearing.