After a criminal defendant has been convicted and sentenced and completed his or her direct appeal and state post-conviction relief proceedings, the defendant has one final means to challenge his or her conviction and sentence. This final proceeding is called a federal habeas corpus proceeding, which is found at 28 U.S.C. section 2254 (prisoners in state custody) and 28 U.S.C. section 2255 (prisoners in federal custody). Habeas corpus is defined as a writ requiring a person to produce a prisoner at a designated time and place so that the court can determine the legality of the prisoner’s detention and whether to order the prisoner’s release.