[Prior Code 16-2]
(a)
It shall be unlawful for any person to resist arrest. For purposes of this Section, a person commits resisting arrest if he or she intentionally prevents or attempts to prevent a peace officer, acting under color of his or her official authority, from effecting an arrest of the actor or another, by:
(b)
It is no defense to a prosecution under this Section that the peace officer was attempting to make an arrest which in fact was unlawful, if he or she was acting under color of his or her official authority and in attempting to make the arrest he or she was not resorting to unreasonable or excessive force giving rise to the right of self-defense. A peace officer acts under color of his or her official authority when, in the regular course of assigned duties, he or she is called upon to make, and does make, a judgment in good faith based upon surrounding facts and circumstances that an arrest should be made by him or her.