Some of the more common defenses are:
Self-defense in the face of excessive force (see above for details).
Your “resistance” consisted of constitutionally protected speech.
Your “resistance” was an involuntary reaction (you lash out blindly while being awakened for a DWI arrest, for example).
You resisted a civil rights violation by the police officer (racial profiling, for example)