When an antivirus intercepts the cURL request, it returns a or 500 Internal Server Error – which cURL translates to code 22.
This sounds trivial, but cURL code 22 can appear if the destination drive is full or the file system is corrupt. The server may respond correctly, but writing fails, and the error gets misreported. download gta5.exe failed with curlcode 22