Improved the SOCKS5 error codes send on network failures.