Federal law requires that in order to preserve a competency to be executed claim the claim must be raised in the initial petition for habeas corpus. The Habeas Corpus petition claims the arrest, sentence, or trial violated constitutional law, making imprisonment unlawful.Petition for Writ of Habeas Corpus. You should use this form if. Petitioner, a state prisoner proceeding pro se, has filed an application for a writ of habeas corpus pursuant to 28 U.S.C. § 2254. In this petition, you must explain why you believe you are being unlawfully detained and provide evidence to support your claim. Mr. Franklin then filed a federal habeas action in the District Court for the Western District of Oklahoma, raising seven grounds for relief. This form of writ asserts that the detention is unlawful and seeks immediate relief or release. Where can I file a state writ of habeas corpus? You can file in a common pleas court, a court of appeals, or the Ohio Supreme Court.