Any person who, knowing that another has been discharged by order of a competent judge or tribunal on a writ of habeas corpus, shall, contrary to the provisions of this chapter, arrest or detain him again for the same cause which was shown on the return of such writ, shall forfeit to the prisoner or person aggrieved five hundred dollars for the first offense and one thousand dollars for every subsequent offense. Recovery of the penalties provided herein shall be no bar to a civil suit for damages.
SDCL 21-27-29