# Internet Library Error Conditions

If an error condition occurs during a call to a LabWindows/CVI Internet Library function, the return value contains the error code. The error code is a negative value that specifies the type of error that occurred. The following table shows the error codes that the Internet Library returns. You can call the InetGetErrorMessage function to obtain the error string shown in the rightmost column of the table.

Code | Defined Constant | Error Message
0 | kInetNoError | Success
–1 | kInetInvalidParameter | Invalid parameter
–2 | kInetOutOfMemory | Out of memory
–3 | kInetTimeOut | Operation timed out
–4 | kInetSocketError | System socket error
–5 | kInetTooManyConnections | Maximum number of FTP connections already open
–6 | kInetFileError | A file operation failed
–7 | kInetMailError | Error in sending mail
–8 | kInetFTPInvalidHandle | Invalid FTP handle
–9 | kInetFTPCannotConnect | Cannot connect to FTP server
–10 | kInetFTPLostConnection | Lost connection to FTP server
–11 | kInetFTPCommandFailed | FTP command failed; try using InetFTPSetPassiveMode
–12 | kInetFTPServerError | FTP server error
–13 | kInetFTPFileError | A file error occurred in an FTP function
–14 | kInetFTPUnauth | Not authorized to access FTP server with given user ID and password
–15 | kInetFTPNoPortFree | No free ports available to establish data connection
–16 | kInetFTPBufferIsEmpty | FTP buffer is empty
–17 | kInetCouldNotLaunchBrowser | Could not find or launch the default Web browser
–18 | kInetDllLoadError | Failed to load cvintwrk.dll
–19 | kInetFunctionNotFound | Failed to find required function in cvintwrk.dll
–20 | kInetCouldNotCreateMutex | Failed to create necessary lock object
–21 | kInetTelnetInvalidHandle | Invalid Telnet handle
–22 | kInetTelnetCannotConnect | Cannot connect to Telnet server
–23 | kInetTelnetTooManyConnections | Maximum number of Telnet connections already open
–24 | kInetTelnetTimeoutNoBytesRead | Operation timed out; no data was read from the Telnet connection
–25 | kInetTelnetTimeoutStringNotFound | Operation timed out; data was successfully read from the Telnet connection, but string to match was not found
–26 | kInetIcmpDllLoadError | Failed to load icmp.dll for ping operation
–27 | kInetIcmpFunctionNotFound | Failed to find required function in icmp.dll for ping operation
–28 | kInetIcmpError | ICMP function failed during ping operation
–29 | kInetPop3ServerError | POP3 server returned error; check your input
–30 | kInetMailParseError | Failed to parse POP3 data