Are you sure that the error is 403 and not 405? Because if it is 405, then you must have tried to ban the user who is a moderator or owner of the room. Which is not allowed.
If the error is 403, then my guess is that the error lies in your code. You probably banned yourself in the process of banning others. 403 is thrown if you joined a room and is banned. Do check your code.