A writ of habeas corpus is another means to fighting the legality of one's incarceration or proving actual innocence. A writ of habeas corpus refers to a court order that is issued to either an agency or a person who is holding someone in custody.Habeas corpus literally means "produce the body. The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. 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. In simple terms, a writ of habeas corpus allows individuals who are detained or imprisoned to challenge the legality of their detention. Habeas corpus, which is Latin for "you may have the body," is a legal principle that protects against unlawful detention or imprisonment. Writs of habeas corpus are available to defendants who want to challenge their imprisonment. He also has experience in the City of San Antonio City Attorney's Office in the Prosecution Division.