Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. To obtain a writ of habeas corpus, you must show the court that you are in custody in violation of the Constitution or laws of the United States.Any federal court may grant a writ of habeas corpus to a petitioner who is within its jurisdiction. This Chapter explains an important right—the writ of habeas corpus. Please complete the fields below to schedule a free consultation with a skilled attorney. There is no such thing in the law, as writs of grace and favour issuing from the Judges: they are all writs of right; but they are not all writs of course. Generally, anyone detained or imprisoned can file a petition for a writ of habeas corpus in the United States. King goes on to state that he based his application for writ of habeas corpus "on the 1st Court of Appeals ruling in Wright v. State, 316 S.W.3d 36 (Houston). Petitioner Samuel King appeals from the district court's denial of his petition for a writ of habeas corpus.