Any officer or other person having in lawful custody any person accused of an offense for the purpose of bringing him before the proper magistrate or court, may place and detain such prisoner in any county jail of this state for one night or longer, as the occasion may require, so as to answer the purposes of the arrest and custody.
Neb. Rev. Stat. §§ 29-410