How to tell if someone is mad at you or just in a bad mood over text?

I told a guy that i need space. We are not physically involved, we are sort of friends with feelings. He is confused and won't pursue a relationship with me so i got tired of waiting around and told him that i need space and we should go our separate ways. I told him that we can still say hi and stuff but thats about it. He told me that he has stuff in his life that he is still trying to sort out, i said i understand. We didn’t talk for a couple of days and then i texted him because i needed to get something from him for school and he didn’t respond even though he saw my text and i didn’t text again at about 3am he texted “ok”. I didn’t reply and when i saw him we just said hi and didn’t talk and a day later he finally responded to my text, he was very formal in his text. Normally, he says hey and uses my name or a nickname but this time he was very formal like he was texting his proffesor or something and he kept using... at the end of his sentences. Is he mad at me or maybe just in a bad mood?
How to tell if someone is mad at you or just in a bad mood over text?
Post Opinion