Section 457(2) in Bharatiya Nagarik Suraksha Sanhita, 2023
(2)If any person liable to be imprisoned or committed to custody under this Sanhita is in confinement in a civil jail, the Court or Magistrate ordering the imprisonment or committal may direct that the person be removed to a criminal jail.