While you are browsing any sites or pages on the Internet, when accessing various sites, the message “Error 502” may appear on the screen of your monitor. However, you cannot open the pages of sites, and you do not have the opportunity to view and study the resources of this website. As a rule, such an error occurs due to the fact that problems are detected in the operation of servers, mainly DNS, proxy or hosting server, which currently has an unavailable site.
The expression “error 502 bad gateway” can be translated as “invalid gateway”. This will mean that the browser (Internet browser) on your computer, when requesting any information from the website, received an unacceptable response from another server (DNS or proxy server). This is reported to the user when the message “502 error” is displayed on the screen.
Most Internet users have repeatedly encountered this error, but for some this may be the first time. What to do when the error 502 message appears on the screen of your computer? First of all, you need to check if there is any access to the Internet at all. To do this, type in the browser the address of another site that is guaranteed to work at the moment, because, for example, corporate access to the Internet is through a proxy server, and not immediately through a modem connected to or built into your computer. If in the latter case the error is recognized in more detail, then when accessing the Internet via a local network, the system is not able to check the error. In this regard, the user has no choice but to find out the reasons for its appearance by indirect methods.

If you have access to the Internet, however, when you try to request a page again from the necessary site, the message “error 502” still pops up, then in this case you should try to delete cookies for this site or all available in your browser.
To do this, you can do the following:
- for Internet Explorer versions 7+: go to the "Tools" menu, then select "Internet Options", click on the "Delete" button, and then on the "Delete cookies" button;
- for earlier versions of Internet Explorer: go to the “Tools menu”, look for the “Internet option” and click on “Delete cookies”;
- for Fierefox: go to “Tools”, look for “Settings”, select “Cookies” and click on “Clear cookies”;
- for Opera: go to "Tools", select "Delete personal data" and check the necessary options with checkmarks;
- for Google Chrome: go to "Tools", click on "History", click on "Clear History", and then on "Clear Cookies".
During normal, normal operation, such an error appears very rarely, only in cases when the web servers are rebooted. If it is noted for more than thirty seconds, then you should try to clear the browser cache , cookies, and restart the browser itself
If the error 502 error message still appears on the screen after the cookies have been cleaned up, this indicates that everything is in order with your computer and network, and most likely there simply were problems with the server. In this case, you should wait a bit until the administrators solve these problems, and then try again.