Sections 77 and 78 IPC carve out a general exception from culpability for judicial authority or acts done pursuant to a court judgment or order.
A.P. Civil Liberties Committee (APCLC) and Others v. Government of A.P. and Others2009 Cassie (AP HC) 395para 161