An application for a writ of habeas corpus asks a court to overturn your conviction because of a state or federal constitutional violation. An application for a Writ of Habeas Corpus is filed when a person seeks relief from unlawful detention or imprisonment.The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. A state writ of habeas corpus is a legal document that allows people in state custody to challenge the legality or constitutionality of their detention. Instead habeas corpus is a vehicle to make a record of new evidence that demonstrates either innocence or a 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 requires that a person who is in custody be brought before a judge or court and that they be able to challenge that custody. A writ of habeas corpus is a legal order that commands an individual or entity to produce a person who is allegedly being detained unlawfully. A writ of habeas corpus is a legal tool that a person can use to enforce a superior right of possession to a child.