The IPC 1860 was replaced by the BNS 2023 (in force 2024-07-01); no verified section mapping on file for Section 170 — confirm the corresponding provision (savings: Section 358, BNS 2023).
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 may extend to two years, or with fine, or with both. CLASSIFICATION OF OFFENCE Punishment--Imprisonment for 2 years, or fine, or both--Cognizable--Non-bailable--Triable by any Magistrate--Non-compoundable.