You should use this form if. A writ of habeas corpus is a judicial mandate to a prison official, usually the warden, ordering that an inmate be brought to the 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. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. The Appellate Division is New York State's intermediate level appellate court. The habeas corpus petition must be typewritten or legibly handwritten. The privilege of the writ of habeas corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it. Habeas corpus protects United States citizens from unlawful or indefinite imprisonment. LAW"). 3. Other ways of attacking your conviction include filing an appeal, or a state or federal writ of habeas corpus. 2021 for leave to issue a writ of habeas corpus.