§ 3974. Remand of prisoner
When the prisoner is lawfully imprisoned or restrained or is not entitled to be released on bail, he shall be remanded to the person from whose custody he was taken or to such other person or officer as by law is authorized to detain him.