A person shall not be arrested or imprisoned, for the non-payment of costs, awarded otherwise than by a final judgment, or a final order, made in a special proceeding instituted by state writ, except where an attorney, counselor, or other officer of the court, is ordered to pay costs for misconduct as such, or a witness is ordered to pay costs on an attachment for non-attendance.
N.Y. Civ. RightsLaw § 20