New York Laws
Article 15 - Human Rights Law
297 - Procedure.

(a) the action or proceeding was commenced, used or continued in bad
faith, solely to delay or prolong the resolution of the litigation or to
harass or maliciously injure another; or
(b) the action or proceeding was commenced or continued in bad faith
without any reasonable basis and could not be supported by a good faith
argument for an extension, modification or reversal of existing law. If
the action or proceeding was promptly discontinued when the party or
attorney learned or should have learned that the action or proceeding
lacked such a reasonable basis, the court may find that the party or the
attorney did not act in bad faith.