Government Code § 820.4
ARTICLE 3. Liability of Public Employees
A public employee is not liable for his act or omission, exercising due care, in the execution or enforcement of any law. Nothing in this section exonerates a public employee from liability for false arrest or false imprisonment.