Section 76 of IPC 1860: Act done by a person bound, or by mistake of fact believing himself bound, by law

Act done by a person bound, or by mistake of fact believing himself bound, by law-Indian Penal Code
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.