Looks like these are called "exemptions" and narrowly scoped to specific codes, e.g., "Exemption of Authorized Emergency Vehicles (California)" https://www.dmv.ca.gov/portal/dmv/detail/pubs/vctop/vc/d11/c...