When such right to causing any harm other than death
IPC 104 (When such right to causing any harm other than death) corresponds most closely to BNS 42, When such right extends to causing any harm other than death, on a text comparison scoring 87 per cent. The Indian Penal Code, 1860 was repealed with effect from 01 Jul 2024, but conduct before that date is still charged, tried and appealed under it.
Repealed · Indian Penal Code
Section 104 When such right to causing any harm other than death
If the offence, the committing of which, or the attempting to commit which occasions the exercise of the right of private defence, be theft, mischief, or criminal trespass, not of any of the descriptions enumerated in the last preceding section, that right does not extend to the voluntary causing of death, but does extend, subject to the restrictions mentioned in section 99, to the voluntary causing to the wrong-doer of any harm other than death.
In force · Bharatiya Nyaya Sanhita
Section 42 When such right extends to causing any harm other than death
If the offence, the committing of which, or the attempting to commit which occasions the exercise of the right of private defence, be theft, mischief, or criminal trespass, not of any of the descriptions specified in section 41, that right does not extend to the voluntary causing of death, but does extend, subject to the restrictions specified in section 37, to the voluntary causing to the wrong-doer of any harm other than death.
Other provisions with similar text
The next closest matches, in order. Where a provision was split or merged, the answer is often more than one of these.
How this table was made, and what it is not
There is no official machine-readable correspondence between the Indian Penal Code, 1860 and the Bharatiya Nyaya Sanhita, 2023. The Ministry published comparison charts for human readers; nothing exists that a computer can check. So this is not an official mapping and we do not present it as one.
What it measures is how alike the text of two provisions is. For each provision of the old enactment we compare its words against every provision of the new one and report the closest, with the score. That works here because the new codes are largely a renumbering rather than a rewrite: where a provision carried over near-verbatim the match is self-evidencing, and you can see it for yourself, because both texts are set out side by side on every entry.
Where the law genuinely changed, the score falls and the entry says no close match found rather than offering a guess. Those entries matter: they are where the reform actually did something.
Check before you cite. A high score means the words are alike, not that a court has held the provisions equivalent. For that, read both texts and the Gazette.
Source and method. Compiled from the enactments of Parliament and of the State legislatures as published on India Code, and republished together with commentary and other original matter under section 52(1)(q)(ii) of the Copyright Act, 1957. Structured, cross-referenced and maintained by eCourtsIndia. This page is not a substitute for legal advice.