Sometimes you will get error codes from the server.
Here is a small documentation of those error codes.
You are spamming the server.
You are sending more than 1024 bytes to the server.
You didnt send a move packet. Note: This takes either your last move or UP (default).
Your ip is already connected. IPv6 may workarounds this but please dont flood the server with connections :(
You didnt send the join packet.
Instead of join you sent some other packet.
You used an invalid username. (e.g. not a string)
Username is too short.
Username is too long.
You used invalid symbols for the username.
You used an invalid password. (e.g. not a string)
Password is too short.
Password is too long.
You should not do this :^) (e.g. hijack bots)
Your password was wrong.
You are already connected with this player.
You did not send a valid move packet.
You are dead so shush :^)
Something is wrong with your chat message.
Server does not know what you want :D