Section 123(1) in The Himachal Pradesh Police Act, 2007
(1)When any action or prosecution is brought or any proceeding held against any Police Officer, for any act done by him in such capacity, it shall be lawful for him to plead that such act was done by him under the authority of a warrant issued by a Magistrate.