Code Enforcement Accountability Checker
Compare what a California code enforcement agency did with what the law requires.
Required by statute
Needs checking: How quickly the inspection must happen
The statute sets no number of days. The inspection must be at least as prompt as the agency's inspections in response to a request for final inspection under California Building Code section 110. The agency's own final-inspection turnaround is the comparison.
Health & Saf. Code § 17970.5
Left to the agency's discretion
Good to know: Which penalties or enforcement steps to use
The statute requires inspection, documentation, notice to the owner and reinspection. It does not dictate whether the agency issues citations, fines, or files a court action; those choices are generally within the agency's discretion and local ordinances.
Limits and immunities
Good to know: Not a mandatory duty for damages
Section 17970.5 states that its requirements do not create a mandatory duty under Government Code section 815.6 and do not remove any immunity that otherwise applies to the city, county or its employees.
Health & Saf. Code § 17970.5Good to know: Inspection immunity
A public entity is generally not liable for injury caused by failing to inspect, or by an inadequate inspection of, property it does not own. This limits money claims; it does not prevent a court from ordering the agency to perform a required act.
Gov. Code § 818.6
Procedures available
Good to know: Request the records
Ask for the inspection report, photographs, notices and case notes. The agency has 10 days to respond, with a possible 14-day extension.
Gov. Code § 7922.535Good to know: Writ of mandate
An action to enforce section 17970.5 is brought as a petition for a writ of mandate asking the superior court to order the agency to perform the required act.
Code Civ. Proc. § 1085Needs checking: Government claim (money damages)
A claim for damages against a public entity is a separate procedure with short deadlines: six months from accrual for injury to a person or personal property, one year for other claims. The immunities above may bar such claims.
Gov. Code § 911.2Good to know: Administrative appeal
A property owner who receives a notice or citation has the appeal rights stated on the notice and in the local ordinance. Those deadlines are set locally and are often short.
Unresolved questions
- Did the agency inspect the building or unit?
- Did the agency refuse to inspect unless a condition was met?
- Did the agency refuse to communicate about the complaint?
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.
What the agency must do after a housing complaint
Since July 1, 2022, a California city or county that receives a complaint from a tenant, resident or occupant about a substandard building or lead hazard must inspect, write up what it finds, tell the owner what to fix, schedule a reinspection and give the person who complained a free certified copy of the report and any citations.
The agency may not make the inspection depend on the tenant first asking the owner for repairs, being current on rent, following the lease or having no dispute with the owner.
What the law leaves open: there is no fixed number of days, and the choice of penalties stays with the agency.
Limits: the statute says these duties are not a basis for money damages and keeps government immunities in place. The remedy it names is a writ of mandate.
The report separates three things: what you entered, what the statute says, and questions that remain open. It does not conclude that anyone acted wrongly. Next, request the agency's file.
Sources
- 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)
- 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)
- 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)
- 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)
Next steps for your filing
Code Enforcement Records Request
Generate a public records request for inspection reports, photos, notices and case files.
Enforcement Records Comparison
Compare two government records productions for missing, changed and duplicate documents.
Habitability Checker
Compare housing conditions with California's legal standard and track repair notice.