VALORANT features a ton of error codes for a host of issues that don’t really tell you what’s going on or how to fix them. Two of these are error code 38 and 40.
These codes, like many others, appear at various times when playing the game. But usually, they show up when you try to load the game for the first time. The screen will go black and one of these codes will appear.
It'll be followed by the text "There was an error connecting to the platform. Please restart your game client." But when you do restart it, most of the time, you'll just see it again. So what does it mean? And is there a way to fix it?
Error codes 38 and 40, like many other error codes in VALORANT, only occur when the servers are having issues.
There isn't exactly a way to "fix" them. They appear when there are issues on Riot's servers. It's just a case of waiting for Riot or the support team to notice and fix the issues that are causing the error codes to appear.