Section 170
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 204. Personating a public servant.
Whoever pretends to hold any particular office as a public servant, knowing that he does not hold such office or falsely personates any other person holding such office, and in such assumed character does or attempts to do any act under colour of such office, shall be punished with imprisonment of either description for a term which shall not be less than six months but which may extend to three years and with fine.
Pair from: BPR&D correspondence tables (bprd.mha.gov.in; A. K. Yadav, CAPT Bhopal)