In this particular incident, the entire episode/entry could have easily been avoided had the resident complied with the officer's initial request to speak to the female party.
The resident was a dumbass who had a shocking experience. The officers were, sadly, doing their jobs. The judges, by setting such a precedent, were operating HUA.
My opinions, your mileage may vary.