A constable who shall fail to discharge any of the duties required of him, when no other penalty is provided for such failure, shall be liable to be fined, as for a contempt, not exceeding Fifty Dollars ($50.00) by the justice of the peace before whom the proceedings may be pending.