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. Petition for Writ of Habeas Corpus.If you are filing this petition in the superior court, you only need to file the original unless local rules require additional copies. This Chapter discusses how the writ of habeas corpus is applied in three states: Florida, New York, and Michigan. If you want to challenge your immigration detention or other immigration related issues, you should use the form Petition for a Writ of Habeas Corpus under 28. Contact an award-winning Writ of Habeas Corpus lawyer today. To challenge your conviction, speak with an OC criminal defense lawyer about a Writ of Habeas Corpus at (714) 530-9690. A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. Habeas petitions are difficult and having a lawyer with experience in habeas practice can make a big difference in your case.