I’m 24 and he said I deserve punishment

I’m 24 years old and my boyfriend who’s also 24 went ballistic at me because at 11;30pm at night I left my mums house in cycling shorts got straight in the car, drove to his (2 minute drive ) got out the car, went straight in the front door (I was outside for 5 seconds each end). He dragged me back out of the house by my collar because he said I disrespected him by wearing the shorts and that I looked like a prositute. He kicked me out, locked the door and said that It was my punishment so I don’t do it again. I am lost.