If a prisoner be not entitled to his discharge, and be not bailed, the court before whom the proceedings are had shall remand him to the custody or place him under the restraint from which he was taken, if the person under whose custody or restraint he was, be entitled thereto; if not so entitled, then he shall be committed to the custody of such officer or person as by law is entitled thereto.
§ 532.500, RSMo
Effective 1/2/1979