Me and my friend were joking yesterday. I was imitating someone from school it was 9 years back. I would like to know what is mean by joking is this joke considered to be haram?

Making fun of people specifically is not allowed