Nothing is an offence which is done by a person who is, 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, bound by law to do it.
Illustrations
(a) A, a soldier, fires on a mob by the order of his superior officer, in
conformity with the commands of the law. A has committed no offence.
(b) A, an officer of a Court of Justice, being ordered by that Court to arrest Y, and after due enquiry, believing Z to be Y, arrests Z. A has committed no offence.
Section 76 Act done by a person bound, or by mistake of fact believing himself bound, by law
Section 77 Act of Judge when acting judicially
Section 78 Act done pursuant to the judgment or order of Court
Section 79 Act done by a person justified, or by mistake of fact believing himself justified, by law
Section 80 Accident in doing a lawful act
Section 81 Act likely to cause harm, but done without criminal intent, and to prevent other harm
Section 82 Act of a child under seven years of age
Section 83 Act of a child above seven and under twelve of immature understanding
Section 84 Act of a person of unsound mind
Section 85 Act of a person incapable of judgment by reason of intoxication caused against his will
Section 86 Offence requiring a particular intent or knowledge committed by one who is intoxicated
Section 88 Act not intended to cause death, done by consent in good faith for person's benefit
Section 90 Consent known to be given under fear or misconception