This Chapter explains the writ of habeas corpus and lays out the procedures you will need to follow to petition for the writ. The procedure for filing a petition for a writ of habeas corpus is spelled out in the CPLR Article 70.To obtain a writ of habeas corpus, you must show the court that you are in custody in violation of the Constitution or laws of the United States. In simple terms, a writ of habeas corpus allows individuals who are detained or imprisoned to challenge the legality of their detention. A writ of habeas corpus is another means to fighting the legality of one's incarceration or proving actual innocence. The service of a Writ of Habeas Corpus only requires the officer to deliver the Writ without any officer enforcement. This petition, called a writ of Habeas Corpus, is filed in Federal Court (U. Precluding him from representing the State in a habeas action filed in Travis County. The trial court sentenced Montgomery to prison for an aggregate term of 61 years to life. Many forms in Texas are not available in a fill-in-the-blank format.