An application for a Writ of Habeas Corpus is filed when a person seeks relief from unlawful detention or imprisonment. The state writ of habeas corpus is a legal mechanism that allows individuals to challenge their detention or imprisonment.An application for a writ of habeas corpus asks a court to overturn your conviction because of a state or federal constitutional violation. The writ of habeas corpus, also known as the Great Writ, is a U.S. legal process that determines whether an offender's imprisonment is valid. The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. The writ of habeas corpus primarily acts as a writ of inquiry, issued to test the reasons or grounds for restraint and detention. 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. A writ of habeas corpus is a legal order that requires the custodian to bring the detained individual before a court or judge. The U.S. Supreme Court interprets the Constitution, which means it defines constitutional rights and violations in the cases it decides. But it is the Supreme Court who stated it best in 1969 in their opinion on Harris v.