Section 217
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 255. Public servant disobeying direction of law with intent to save person from punishment or property from forfeiture.
Whoever, being a public servant, knowingly disobeys any direction of the law as to the way in which he is to conduct himself as such public servant, intending thereby to save, or knowing it to be likely that he will thereby save, any person from legal punishment, or subject him to a less punishment than that to which he is liable, or with intent to save, or knowing that he is likely thereby to save, any property from forfeiture or any charge to which it is liable by law, shall be punished with imprisonment of either description for a term which may extend to two years, or with fine, or with both.
Pair from: BPR&D correspondence tables (bprd.mha.gov.in; A. K. Yadav, CAPT Bhopal)