Legal Library
IPC 79 and BNS 17
Look up a section of the Indian Penal Code, the Code of Criminal Procedure or the Evidence Act and see the section of the Bharatiya Nyaya Sanhita, the Bharatiya Nagarik Suraksha Sanhita or the Bharatiya Sakshya Adhiniyam that corresponds to it, or the other way round. Both texts are shown so you can read the difference yourself. Try "CrPC 438", "BNS 103" or "Evidence Act 65B".
IPC 79
Act done by a person justified, or by mistake of fact believing himself justified, by law.
79. Act done by a person justified, or by mistake of fact believing himself justified, by law.— Nothing is an offence which is done by any person who is justified by law, or who by reason of a mistake of fact and not by reason of a mistake of law in good faith, believes himself to be justified by law, in doing it. Illustration A sees Z commit what appears to A to be a murder. A, in the exercise, to the best of his judgment exerted in good faith, of the power which the law gives to all persons of apprehending murderers in the fact, seizes Z, in order to bring Z before the proper authorities. A has committed no offence, though it may turn out that Z was acting in self-defence.
Open in the ActBNS 17
Act done by a person justified, or by mistake of fact believing himself justified, by law.
17. Act done by a person justified, or by mistake of fact believing himself justified, by law.— Nothing is an offence which is done by any person who is justified by law, or who by reason of a mistake of fact and not by reason of a mistake of law in good faith, believes himself to be justified by law, in doing it. Illustration. A sees Z commit what appears to A to be a murder. A, in the exercise, to the best of his judgment exerted in good faith, of the power which the law gives to all persons of apprehending murderers in the fact, seizes Z, in order to bring Z before the proper authorities. A has committed no offence, though it may turn out that Z was acting in self-defence.
Which section corresponds to which is a matter of record, taken from the table below. It does not mean the two sections say the same thing, and it does not decide whether a ruling on the earlier section applies to the later one.
Link to this answer: /mapping/ipc/79
Source: National Crime Records Bureau, Ministry of Home Affairs: Corresponding Section Table, as read on 13 October 2026. Section text is from the Acts in this library.
As on a date
Choose the date of the offence or of the event. You will see which code governed that day, this section next to its counterpart word by word, and the amendments made after that date.