N.Y. Civil Rights Law § 23
A person shall not be arrested in a civil action or special proceeding, except as prescribed by statute. The writ of ne exeat is abolished.