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. These are the official forms for use in Family Court proceedings.If Petitioner wishes to file an amended Section 2254 petition, to challenge the execution of his sentence, he must do so on or before November 7, 2022. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment.