In your petition, clearly explain why you are being held illegally. In this video, David offers insight on how to file habeas corpus and compassionate release motions.First, a U.S.C. § 2254 allows us to file a petition for Habeas Corpus when the client is in custody under sentence of a state court and is in a state prison. Prisoners have no right to have an attorney help them in a habeas corpus petition, and the court does not usually appoint counsel. This FindLaw article explains the origins of the writ of habeas corpus, how to file, and limitations on filing. Petition for Writ of Habeas Corpus Under 28 U.S.C. § 2254. Download. The petition must name the custodian as the respondent and state the facts concerning the applicant's custody and include the legal basis for the request. Most people have heard of the Writ of Habeas Corpus, which is literally a plea to release the body of a person being detained. These During a case resources are designed for lawyers and legal professionals to help their clients resolve their legal problems. If the Supreme Court chooses to exercise its authority in a case of these types, the circuit court loses jurisdiction.