The IPC 1860 was replaced by the BNS 2023 (in force 2024-07-01); no verified section mapping on file for Section 342 — confirm the corresponding provision (savings: Section 358, BNS 2023).
Whoever wrongfully confines any person shall be punished with imprisonment of either description for a term which may extend to one year, or with fine which may extend to one thousand rupees, or with both. CLASSIFICATION OF OFFENCE Punishment--Imprisonment for 1 year, or fine of 1,000 rupees, or both--Cognizable--Bailable--Triable by any Magistrate--Compoundable by the person restrained or confined.