3-1-522. Illness sufficient excuse -- confinement under arrest. (1) Whenever an officer is required to keep a person arrested on a warrant of attachment in custody and to bring the person before a court or judge, the inability, from illness or otherwise, of the person to attend is sufficient excuse for not bringing the person before the court or judge.
(2) The officer may not confine a person arrested upon a warrant in a prison or otherwise restrain the person of personal liberty, except to the extent necessary to secure the person's personal attendance.