The IPC 1860 was replaced by the BNS 2023 (in force 2024-07-01); no verified section mapping on file for Section 178 — confirm the corresponding provision (savings: Section 358, BNS 2023).
Whoever refuses to bind himself by an oath or affirmation to state the truth, when required so to bind himself by a public servant legally competent to require that he shall so bind himself, shall be punished with simple imprisonment for a term which may extend to six months, or with fine which may extend to one thousand rupees, or with both. CLASSIFICATION OF OFFENCE Punishment--Simple imprisonment for 6 months, or fine of 1,000 rupees, or both--Non-cognizable--Bailable--Triable by the Court in which the offence is committed, subject to the provisions of Chapter XXVI; or, if not committed in a Court, any Magistrate--Non-compoundable.