
If it’s a server issue, then there is nothing to do to fix the issue. You will just have to wait patiently until the server starts working again.
Method 2: Changing Game server Region
If one of the servers is showing you the Error code 2 than there are other servers you can join in and play your game. However, these servers are regional, so if your region server has some issue. It will be best if you change it another region, the steps to do so are as follows.
Open up the Blizard client/ Battle.Net application, move your mouse on the top. Then click on the down arrow beside your profile icon and name. From the menu, select the Log Out option.

Once you have logged out successfully, before logging in again, click on the Global icon and select another region server.

After that enter your credentials and log in again, now try to launch the game and see if the Error #2 has been resolved.
It is possible that your game files are corrupt, hence your ae having the Error #2 issue. To fix it you simply have to scan and repair the game vi Blizzard client.
Close the game completely that you are having an issue with, check with task manager to ensure it is not running in the background. Then open up the blizzard client/ Battle.Net application, then go to the Game tab on the top menu.
Select the game that you are having issues with, and click on the Options option and from the menu, select the Scan and Repair option.

A prompt will appear on the screen for confirmation to begin the scan and repair. Click on the Begin Scan option, and wait until it’s finished. Now you can open up the game and check if the issue is resolved.
This issue may also arise due to interference of your installed Antivirus or firewall apps. It will be efficient if you apply the specific steps according to your installed Antivirus or antimalware apps which might be the cause of your Error #2.
Conclusion
Many online gams face such connective issues from time to time, so users should not worry much. In case none of these methods are able to fix your problem, then i recommend you to reinstall Battle.Net software and the game itself. This will fix any internal issues with game files.
Also Read: Fix Battle.net It’s a Busy Day for Blizzard Services login queue