is lying to the cops in california a misdemeanor or an infraction?

please help me.

has anyone else ever lied to the cops?