A writ of habeas corpus is another means to fighting the legality of one's incarceration or proving actual innocence. In United States law, habeas corpus is a recourse challenging the reasons or conditions of a person's confinement under color of law.Call 936-647-1540 for tailored legal solutions in state and federal cases. 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. The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. The appropriate remedy is to seek a writ of habeas corpus. Writs share some similarities with appeals, but they differ in one critically important aspect. The writ (or court order) of habeas corpus required that anyone, including royal officials, who detained a prisoner, had to show that this detention was legal. Please carefully read through all the steps listed below before you begin. General principles have often been used to fill in gaps in international law during interstate litigation.