ยง  780.  Sheriff  liable  for  taking insufficient sureties. After the
  return of an execution, issued upon a judgment, rendered  in  an  action
  upon  the undertaking, an action, to recover the amount of the judgment,
  may be maintained against the sheriff, where it  appears  that,  at  the
  time when the undertaking was given, the sureties were insufficient, and
  the  sheriff  had reasonable grounds to doubt their sufficiency. Such an
  action may be maintained by the plaintiff, in whose favor  the  judgment
  was  recovered.  If  the  people  were  plaintiffs,  the  action must be
  prosecuted by the attorney-general or the  district  attorney;  and  any
  money  collected  therein must be disposed of, as prescribed in the last
  section.
Structure New York Laws
750 - Power of Courts to Punish for Criminal Contempts.
751 - Punishment for Criminal Contempts.
752 - Requisites of Commitment for Criminal Contempt; Review of Certain Mandates.
753 - Power of Courts to Punish for Civil Contempts.
753-A - Contempts in Cases Involving or Growing Out of Labor Disputes.
754 - Special Proceeding to Punish for Contempt Punishable Civilly.
755 - When Punishment May Be Summary.
756 - Application to Punish for Contempt; Procedure.
757 - Application to Punish for Contempt Committed Before Referee.
758 - Notice to Delinquent Officer to Show Cause.
760 - When Application May Be Made.
761 - Notice to Accused; Service.
767 - When Habeas Corpus May Issue.
770 - Final Order Directing Punishment; Exception.
771 - Punishment Upon Return of Habeas Corpus.
772 - Punishment Upon Return of Application.
774 - Length of Imprisonment and Periodic Review of Proceedings.
775 - When Court May Release Offender.
776 - Offender Liable to Indictment.
777 - Proceedings When Accused Does Not Appear.
778 - Prosecution of Undertaking by Person Aggrieved.
779 - Prosecution of Undertaking by Attorney-General or District Attorney.