Skip to main content

Network Library CURL Error code

The Player Network SDK network library uses the libcurl solution.In the error codes returned by the SDK, if the retcode is 4 it indicates a network error; the specific reason for the network error can be determined based on the thirdcode.The following are CURL's error codes:

Error Code NameCorresponding Error Code and DescriptionExplanation
CURLE_OK0-
CURLE_UNSUPPORTED_PROTOCOL1-
CURLE_FAILED_INIT2-
CURLE_URL_MALFORMAT3-
CURLE_NOT_BUILT_IN44 - [was obsoleted in August 2007 for 7.17.0, reused in April 2011 for 7.21.5]
CURLE_COULDNT_RESOLVE_PROXY5-
CURLE_COULDNT_RESOLVE_HOST6-
CURLE_COULDNT_CONNECT7-
CURLE_WEIRD_SERVER_REPLY8-
CURLE_REMOTE_ACCESS_DENIED99 - a service was denied by the server due to lack of access - when login fails this is not returned.
CURLE_FTP_ACCEPT_FAILED1010 - [was obsoleted in April 2006 for 7.15.4, reused in Dec 2011 for 7.24.0]
CURLE_FTP_WEIRD_PASS_REPLY11-
CURLE_FTP_ACCEPT_TIMEOUT1212 - timeout occurred accepting server [was obsoleted in August 2007 for 7.17.0, reused in Dec 2011 for 7.24.0]
CURLE_FTP_WEIRD_PASV_REPLY13-
CURLE_FTP_WEIRD_227_FORMAT14-
CURLE_FTP_CANT_GET_HOST15-
CURLE_HTTP216Problems in the http2 frame layer [Error code was obsoleted in August 2007 for 7.17.0 and reused in July 2014 for 7.38.0]
CURLE_FTP_COULDNT_SET_TYPE17-
CURLE_PARTIAL_FILE18-
CURLE_FTP_COULDNT_RETR_FILE19-
CURLE_OBSOLETE202046 - NOT USED
CURLE_QUOTE_ERROR2121 - quote command failure
CURLE_HTTP_RETURNED_ERROR22-
CURLE_WRITE_ERROR23-
CURLE_OBSOLETE242424 - NOT USED
CURLE_UPLOAD_FAILED2525 - Failed to upload "command"
CURLE_READ_ERROR2626 - Could not open or read from the file
CURLE_OUT_OF_MEMORY2727 - CURLE_OUT_OF_MEMORY may sometimes indicate a conversion error rather than a memory allocation error if CURL_DOES_CONVERSIONS is defined
CURLE_OPERATION_TIMEDOUT2828 - The timeout period has elapsed
CURLE_OBSOLETE292944 - NOT USED
CURLE_FTP_PORT_FAILED3030 - FTP PORT operation failed
CURLE_FTP_COULDNT_USE_REST3131 - The REST command failed
CURLE_OBSOLETE323232 - Not used
CURLE_RANGE_ERROR3333 - The "command" RANGE did not work
CURLE_HTTP_POST_ERROR34-
CURLE_SSL_CONNECT_ERROR3535 - Error when connecting via SSL
CURLE_BAD_DOWNLOAD_RESUME3636 - Could not resume the download
CURLE_FILE_COULDNT_READ_FILE37-
CURLE_LDAP_CANNOT_BIND38-
CURLE_LDAP_SEARCH_FAILED39-
CURLE_OBSOLETE404020 - Not used
CURLE_FUNCTION_NOT_FOUND4141 - no longer used as of 7.53.0
CURLE_ABORTED_BY_CALLBACK42-
CURLE_BAD_FUNCTION_ARGUMENT43-
4440 - not used
CURLE_INTERFACE_FAILED45The following are CURL's error codes:
CURLE_OBSOLETE464629 - not used
CURLE_TOO_MANY_REDIRECTS4747 - Handle Endless Redirect Loops
CURLE_UNKNOWN_OPTION4848 - The user specified an unknown option
CURLE_TELNET_OPTION_SYNTAX4949 - Malformed Telnet option
CURLE_OBSOLETE5050 - Unused45 - CURLOPT_INTERFACE failed
CURLE_PEER_FAILED_VERIFICATION5151 - The peer's certificate or fingerprint was not verified; that's fine.
CURLE_GOT_NOTHING5252 - when this is a specific error
CURLE_SSL_ENGINE_NOTFOUND5353 - SSL crypto engine not found
CURLE_SSL_ENGINE_SETFAILED5454 - Cannot set the SSL crypto engine as the default
CURLE_SEND_ERROR5555 - Failed to send network data
CURLE_RECV_ERROR5656 - Failure to receive network data
CURLE_OBSOLETE575757 - Not in use
CURLE_SSL_CERTPROBLEM5858 - Problem with the local certificate
CURLE_SSL_CIPHER5959 - Could not use the specified cipher
CURLE_SSL_CACERT6060 - Problem with the CA certificate (path?)
CURLE_BAD_CONTENT_ENCODING6161 - unrecognized/incorrect encoding
CURLE_LDAP_INVALID_URL6262 - Invalid LDAP URL
CURLE_FILESIZE_EXCEEDED6363 - Maximum file size exceeded
CURLE_USE_SSL_FAILED6464 - The requested FTP SSL level failed
CURLE_SEND_FAIL_REWIND6565 - Sending the data requires a rewind that failed
CURLE_SSL_ENGINE_INITFAILED6666 - Failed to initialize ENGINE
CURLE_LOGIN_DENIED6767 - The username, password, or similar was not accepted, and we were unable to log in
CURLE_TFTP_NOTFOUND6868 - File not found on the server
CURLE_TFTP_PERM6969 - Permission issue on the server
CURLE_REMOTE_DISK_FULL70Insufficient disk space on server
CURLE_TFTP_ILLEGAL7171 - Illegal TFTP operation
CURLE_TFTP_UNKNOWNID72Unknown transfer ID
CURLE_REMOTE_FILE_EXISTS7373 - File already exists
CURLE_TFTP_NOSUCHUSER7474 - no such user
CURLE_CONV_FAILED7575 - Conversion Failed
CURLE_CONV_REQD76The caller must register conversion callbacks using the curl_easy_setopt options CURLOPT_CONV_FROM_NETWORK_FUNCTION, CURLOPT_CONV_TO_NETWORK_FUNCTION, and CURLOPT_CONV_FROM_UTF8_FUNCTION.
CURLE_SSL_CACERT_BADFILE7777 - Could not load the CACERT file; it is missing or in the wrong format
CURLE_REMOTE_FILE_NOT_FOUND7878 - Remote file not found
CURLE_SSH7979 - Error from the SSH layer; this is somewhat generic, so the error message will be of interest when this occurs.
CURLE_SSL_SHUTDOWN_FAILED8080 - Failed to shut down the SSL connection
CURLE_AGAIN8181 - The socket is not ready for send/recv; wait until it is ready and try again (Added in 7.18.2)
CURLE_SSL_CRL_BADFILE8282 - Could not load CRL file; file is missing or in the wrong format (Added in 7.19.0)
CURLE_SSL_ISSUER_ERROR83Issuer check failed. (Added in 7.19.0)
CURLE_FTP_PRET_FAILED8484 - A PRET command failed
CURLE_RTSP_CSEQ_ERROR8585 - Mismatch in RTSP CSeq numbers
CURLE_RTSP_SESSION_ERROR8686 - Mismatch of RTSP Session IDs
CURLE_FTP_BAD_FILE_LIST8787 - Unable to parse FTP file list
CURLE_CHUNK_FAILED88Chunk callback reported an error
CURLE_NO_CONNECTION_AVAILABLE89No connection available; the session will be queued
CURLE_SSL_PINNEDPUBKEYNOTMATCH90The specified pinned public key did not match
CURLE_SSL_INVALIDCERTSTATUS9191 - Invalid certificate status
CURLE_HTTP2_STREAM9292 - Stream error in the HTTP/2 framing layer
CURLE_RECURSIVE_API_CALL93An API function was called from within a callback
CURL_LASTNever use!-