Minecraft-troubleshooting:Error code 502 and 503
Some of the rare error codes are 502 and 503. These occur if your service is unable to connect to the mojang authentication servers keeping the server from asking their servers who you are.
If you wish to see the status of the Minecraft Auth Servers, please check this link. http://xpaw.ru/mcstatus/