New York Laws
Article 70 - Habeas Corpus
7003 - When the Writ Shall Be Issued.

(b) Successive petitions for writ. A court is not required to issue a
writ of habeas corpus if the legality of the detention has been
determined by a court of the state on a prior proceeding for a writ of
habeas corpus and the petition presents no ground not theretofore
presented and determined and the court is satisfied that the ends of
justice will not be served by granting it.
(c) Penalty for violation. For a violation of this section in
refusing to issue the writ, a judge, or, if the petition was made to a
court, each member of the court who assents to the violation, forfeits
to the person detained one thousand dollars, to be recovered by an
action in his name or in the name of the petitioner to his use.