The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. An application for a writ of habeas corpus asks a court to overturn your conviction because of a state or federal constitutional violation.A Writ of Habeas Corpus (Latin for "that you have the body") may be filed on behalf of a person who is unlawfully imprisoned. A writ of habeas corpus is a legal tool that a person can use to enforce a superior right of possession to a child. A writ of habeas corpus requires that a person who is in custody be brought before a judge or court and that they be able to challenge that custody. In both federal and Texas law, Writs of Habeas Corpus allow convicted individuals to introduce new evidence that wasn't at trial. Habeas corpus writs typically center around the defense counsel's ineffectiveness, evidence of actual innocence or evidence that the prosecution improperly hid. Essentially, it's a safeguard against unlawful or arbitrary detention. The main solution is through an application for a writ of habeas corpus. The term "habeas corpus" is a latin term that means "you have the body."