The remedy provided in this article for sureties extends to endorsers, guarantors, drawers of bills which have been accepted, and every other suretyship, whether created by express contract or operation of law.