Here we will see Section 345 IPC | Indian Penal Code.
Wrongful confinement of person for whose liberation writ has been issued.— Whoever keeps any person in wrongful confinement, knowing that a writ for the liberation of that person has been duly issued, shall be punished with imprisonment of either description for a term which may extend to two years in addition to any term of imprisonment to which he may be liable under any other section of this Chapter.