Category Representing Yourself (Pro Se). Respondent. WRIT OF HABEAS CORPUS.The procedure for filing a petition for a writ of habeas corpus is spelled out in the CPLR Article 70. This article addresses a defendant's right to file a federal petition for a writ of habeas corpus from a conviction in a state 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. Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights. §2241(c) allows federal courts to is sue a writ of habeas corpus ordering the transporta tion of a state prisoner only when necessary to bring.