It demands a person's release from unlawful detention. This section constitutes an overview on California habeas corpus practice as it relates to the handling of criminal appeals.The literal meaning of habeas corpus is "you should have the body". A defendant must request a Franklin hearing; it does not occur automatically. The method used is habeas corpus. The writ of habeas corpus is a legal order requiring a person holding another person to produce that individual before a court or judge. A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment. In the usual case, habeas relief will be sought when it is necessary to advert to facts which are outside the record on appeal. The purpose of this order is to ensure that the detainee is not being held unlawfully or without sufficient cause. Petition for Relief From a Conviction or Sentence By a Person in State Custody (Petition Under 28 U. S. C. § 2254 for a Writ of Habeas Corpus). Form:.