(a) A person riding a bicycle or operating a pedicab upon a highway has all the rights and is subject to all the provisions applicable to the driver of a vehicle by this division, including, but not limited to, provisions concerning driving under the influence of alcoholic beverages or drugs, and by Division 10 (commencing with Section 20000), Section 27400, Division 16.7 (commencing with Section 39000), Division 17 (commencing with Section 40000.1), and Division 18 (commencing with Section 42000), except those provisions which by their very nature can have no application.
(b) (1)A peace officer, as defined in Chapter 4.5 (commencing with Section 830) of Title
3 of Part 2 of the Penal Code, operating a bicycle during the course of his or her duties is exempt from the requirements of subdivision (a), except as those requirements relate to driving under the influence of alcoholic beverages or drugs, if the bicycle is being operated under any of the following circumstances:
(A) In response to an emergency call.
(B) While engaged in rescue operations.
(C) In the immediate pursuit of an actual or suspected violator of the law.
(2) This subdivision does not relieve a peace officer from the duty to operate a bicycle with due regard for the safety of all persons using the highway.