Contact an award-winning Writ of Habeas Corpus lawyer today. Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights.1. Take the Writ and Verified Petition to 60 Centre Street, New York County - Supreme Court - Civil Term. A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. Petition for a Writ of Habeas Corpus under 28 USC 2241. Category. Representing Yourself (Pro Se). If you have been convicted in a New York state court, it may be possible for you to challenge and overturn your conviction. Writ of habeas corpus in the nature of an application on behalf of Austroberto Portilla for bail reduction upon Queens County IDV Nos. Any prisoner, or another person acting on their behalf, may petition the court, or a judge, for a writ of habeas corpus.