The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. Habeas corpus refers to "a writ employed to bring a person before a court, most frequently to ensure that the person's imprisonment or detention is not illegal.Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. A Writ of Habeas Corpus (Latin for "that you have the body") may be filed on behalf of a person who is unlawfully imprisoned. 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 ad subjiciendum is the writ designated in ORS 34.310 (Purpose of writ) to 34.730 (Forfeiture for refusing… Habeas Corpus Resource Center Graphic. Habeas Corpus Resource Center Graphic. §2254(b)(1)(A) ("An application for a writ of habeas corpus . . . He has placed reliance upon the judgment of this Court in Criminal Writ Petition No. 465 of 2005 dated 14.10.