27-16-1005. Officer to detain defendant -- expenses. The officer making the arrest shall keep the defendant in custody until the defendant is discharged by order of the justice. The officer may not be bound to keep the defendant under arrest more than 24 hours unless the plaintiff pays each day the expenses of keeping the defendant, which expense must be taxed as costs in the action and may not be a charge against the county.