Except as provided in Chapter 2 (commencing with Section 830), neither a public entity nor a public employee is liable for failure to provide a prison, jail or penal or correctional facility or, if such facility is provided, for failure to provide sufficient equipment, personnel or facilities therein.