https://www.vlaoffice.com/section-79-ipc-indian-penal-code-act-done-by-a-person-justified-or-by-mistake-of-fact-believing-himself-justified-by-law/
Section 79 IPC (Indian Penal Code): Act done by a person justified, or by mistake of fact believĀ­ing himself justified, by law.