If he did as claimed, he behaved stupidly. :)
My comment was with regard to the Constitution. Can you point out the clause prohibiting officers of the state from saying mean things to citizens?
Particularly as this was not a federal officer.
Is it constitutional for the government to degrade a citizen? That is the answer to your question. How a cop is allowed to behaves, while representing the government, is how that government behaves.