California code enforcement law
What a city or county must do after a housing complaint, what is left to its discretion, and the limits on holding it liable.
Code Enforcement Accountability Checker
Compare what the agency did with what the law requires.
Public Records Request Generator
Request inspection reports, photos, notices and case files.
Enforcement Records Comparison
Compare two records productions for gaps and changes.
Required by statute
Under AB 838 (Health and Safety Code section 17970.5, operative July 1, 2022), a city or county that receives a complaint from a tenant, resident or occupant about a substandard building or lead hazard must inspect, document what it finds in a report, advise the owner of each violation and the fix required, schedule a reinspection, and give the person who complained free certified copies of the report and any citations.
Under AB 548 (section 17970.7), local agencies needed written policies by January 1, 2025 for inspecting other units when a substandard condition could affect them.
Left to the agency
The statute does not set a number of days for the inspection; it must be at least as prompt as the agency's final building inspections. It also does not say which penalties the agency must use.
Limits
Section 17970.5 says its requirements are not a mandatory duty for damages purposes and keep existing government immunities in place. Its remedy is a writ of mandate, a court order to perform the required act.
Authorities applied
| Authority | What it covers | Version relied on |
|---|---|---|
| Health & Saf. Code § 17920.3 Substandard buildings | Lists the conditions (sanitation, structural, wiring, plumbing, mechanical, weather protection, mold and others) that make a building substandard when they endanger occupants or the public. | Current version |
| Health & Saf. Code § 17920.10 Lead hazards | A dwelling with lead hazards likely to endanger occupants violates the State Housing Law. | Current version |
| Health & Saf. Code § 17970.5 AB 838 — complaint inspections | A city or county that receives a tenant, resident or occupant complaint about a substandard building or lead hazard must inspect, document violations, advise the owner, schedule reinspection and give free certified copies of the report and citations to the person who complained. | Operative July 1, 2022 |
| Health & Saf. Code § 17970.7 AB 548 — multi-unit inspections | Local enforcement agencies must have policies for inspecting other units when a substandard condition could affect them, including at least the units next to, above and below. | Effective January 1, 2024; local policies due by January 1, 2025 |
| Gov. Code § 7922.535 Public Records Act — response time | The agency has 10 days from receipt to decide whether it holds disclosable records, and may extend by written notice for no more than 14 days in unusual circumstances. | Current version (Public Records Act recodified January 1, 2023) |
| Gov. Code § 911.2 Government Claims Act — claim deadline | A claim for death or injury to a person or personal property must be presented within six months of accrual; other claims within one year. | Current version |
| Gov. Code § 912.4 Government Claims Act — time to act on a claim | The public entity acts on a claim within 45 days after it is presented. | Current version |
| Gov. Code § 945.6 Government Claims Act — time to sue | A lawsuit must start within six months after written notice of rejection is delivered or mailed, or within two years of accrual when no written notice is given. | Current version |
| Gov. Code § 818.6 Inspection immunity | A public entity is not liable for injury caused by failing to inspect, or by an inadequate or negligent inspection of, property that is not its own. | Current version |
| Gov. Code § 815.6 Mandatory duty liability | Describes when a public entity can be liable for failing to carry out a mandatory duty. Section 17970.5 says its requirements are not such a duty. | Current version |
| Code Civ. Proc. § 1085 Writ of mandate | A court may order a public agency to perform an act the law specifically requires. Section 17970.5 is enforced this way. | Current version |
| Cal. Code Regs., tit. 24 California Building Standards Code | Statewide building standards that local building departments enforce. | Current triennial edition |
California rules last checked 2026-11-30. Compared with the published California code text. Statutes change; open the official link to confirm the current version before relying on a result.
This is general information, not legal advice. Cities and counties often have stricter rules that are not included here.