Section 220
The text of the Indian Penal Code, 1860 is not held here: India Code has no complete official copy of it. The section that replaced it is below.
Source: IndiaCode Portal, Legislative Department, Ministry of Law and Justice, Government of India. Check against the official text before relying on it.
Replaced by
The Bharatiya Nyaya Sanhita, 2023, Section 258. Commitment for trial or confinement by person having authority who knows that he is acting contrary to law
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.
Pair from: BPR&D correspondence tables (bprd.mha.gov.in; A. K. Yadav, CAPT Bhopal)