It does the same for me.
Firstly, just check your connection even if you know its good. Make sure your router is up and running. Even though you may not think your internet is an issue, it's most likely that. Sometimes you can get a weak connection to the game server from slower connections.
I know I get these errors a lot.