[h=4]502 Error Code Explained[/h]
The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in the attempt to fulfill the request.
[h=4]Why it occurs[/h]
A server is acting as a gateway or proxy to fulfil the request by the client ,to access the requested URL. The error occurs When this server receives an invalid response from an upstream server it accessed to fulfil the request. This usually does not mean that the upstream server is down , but rather that the upstream server and the gateway/proxy do not agree on the protocol for exchanging data.
[h=4]Fixing 502 error code[/h]
Both the proxy and upstream server should be programmed correctly and completely.The IP communication between back-end computers should be good.Before analysing this problem, you should clear your browser cache completely.If you see this problem for all the sites you visit,then either 1) your ISP has a major equipment failure/overload or 2) there is something wrong with your internal Internet connection e.g. your firewall is not functioning correctly. In the first case, only your ISP can help you. In the second case, you need to fix whatever it is that is preventing you reaching the Internet.