I would be pissed especially if I had changed plans to be with that person. He was very rude and why did he think you needed to “be taught a lesson.” What you said to him was appropriate. I wouldn’t make plans with him again. That would “teach him a lesson.”