The IPC 1860 was replaced by the BNS 2023 (in force 2024-07-01); no verified section mapping on file for Section 220 — confirm the corresponding provision (savings: Section 358, BNS 2023).
Whoever, being in any office which gives him legal authority to commit persons for trial or to confinement, or to keep persons in confinement, corruptly or maliciously commits any person for trial or to confinement, or keeps any person in confinement, in the exercise of that authority knowing that in so doing he is acting contrary to law, shall be punished with imprisonment of either description for a term which may extend to seven years, or with fine, or with both. CLASSIFICATION OF OFFENCE Punishment--Imprisonment for 7 years, or fine, or both--Non-cognizable--Bailable--Triable by Magistrate of the first class--Non-compoundable.