(a) It shall be the duty of the sheriff and of every constable to whom any notice in an action may be delivered for service within his or her county to serve and return the notice to the party who delivered it to him or her.
(b) A failure to perform this duty may be punished as a disobedience of the process of the court.