If any officer, sheriff, jailer, keeper, or other person to whom any writ of habeas corpus is directed shall neglect or refuse to make the return, or to bring the body of the applicant according to the command of such writ, he shall be punished as for contempt and shall also forfeit to the prisoner or person aggrieved a sum not exceeding five hundred dollars. Recovery of the penalties provided herein shall be no bar to a civil suit for damages.
SDCL 21-27-10