The procedure for filing a petition for a writ of habeas corpus is spelled out in the CPLR Article 70. The Writ of Habeas Corpus is now codified in both New York State and Federal Law.The petition must be typed or neatly written, and you must sign and date it under penalty of perjury. A false statement may lead to prosecution. Any defendant who has been convicted of a New York state crime in a proceeding should be aware of their right to file a petition for a Writ of Habeas Corpus. A writ of habeas corpus may be served on any day. A seasoned New York habeas corpus lawyer can guide and represent you in the filing and litigation of a motion for a writ of habeas corpus. Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights. 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. The privilege of a writ or order of habeas corpus shall not be suspended, unless, in case of rebellion or invasion, the public safety requires it.