My bf said I’m ugly

I was venting to my bf how I really wanted a friend and how stressed I am and then I was like I feel so ugly like I’m just ugly and I’m gonna cry rn cause I feel like shit and he didn’t even say anything..he just said well I’m ugly too. So he agreed with me saying I’m ugly and then I got upset and said he just called me ugly and he was like no I didn’t mean it like that. 😕🙄 am I overreacting or am I kinda right?