<< Click to Display Table of Contents >>
Last Error |
N1 |
1 (one) |
N2 |
0 (zero) |
N3 |
0 (zero) |
N4 |
0 (zero) |
Informs the last transaction's error code as a number, according to the following values:
•0: OK
•1: UNSUPPORTED_PROTOCOL
•2: FAILED_INIT
•3: URL_MALFORMAT
•5: COULDNT_RESOLVE_PROXY
•6: COULDNT_RESOLVE_HOST
•7: COULDNT_CONNECT
•8: FTP_WEIRD_SERVER_REPLY
•9: REMOTE_ACCESS_DENIED (does not mean a login failure)
•11: FTP_WEIRD_PASS_REPLY
•13: FTP_WEIRD_PASV_REPLY
•14: FTP_WEIRD_227_FORMAT
•15: FTP_CANT_GET_HOST
•17: FTP_COULDNT_SET_TYPE
•18: PARTIAL_FILE
•19: FTP_COULDNT_RETR_FILE
•21: QUOTE_ERROR (failure when using the QUOTE command)
•22: HTTP_RETURNED_ERROR
•23: WRITE_ERROR
•25: UPLOAD_FAILED (failure when using the UPLOAD command)
•26: READ_ERROR (cannot open or read the file)
•27: OUT_OF_MEMORY
•28: OPERATION_TIMEDOUT (time-out reached)
•30: FTP_PORT_FAILED (failure when using the FTP PORT operation)
•31: FTP_COULDNT_USE_REST (failure when using the REST command)
•33: RANGE_ERROR (failure when using the RANGE command)
•34: HTTP_POST_ERROR
•35: SSL_CONNECT_ERROR (error when connecting using SSL)
•36: BAD_DOWNLOAD_RESUME (cannot restart download)
•37: FILE_COULDNT_READ_FILE
•38: LDAP_CANNOT_BIND
•39: LDAP_SEARCH_FAILED
•41: FUNCTION_NOT_FOUND
•42: ABORTED_BY_CALLBACK
•43: BAD_FUNCTION_ARGUMENT
•45: INTERFACE_FAILED (failure in CURLOPT_INTERFACE)
•47: TOO_MANY_REDIRECTS (error in endless redirection loops)
•48: UNKNOWN_TELNET_OPTION (user specified an unknown option)
•49: TELNET_OPTION_SYNTAX (malformed TELNET option)
•51: PEER_FAILED_VERIFICATION (invalid certificate)
•52: GOT_NOTHING
•53: SSL_ENGINE_NOTFOUND (SSL engine not found)
•54: SSL_ENGINE_SETFAILED (SSL engine cannot be configured as default)
•55: SEND_ERROR (failure when sending network data)
•56: RECV_ERROR (failure when receiving network data)
•57: OBSOLETE57 (not used)
•58: SSL_CERTPROBLEM (problem with local certificate)
•59: SSL_CIPHER (cannot use specified cipher)
•60: SSL_CACERT (problem with CA certificate)
•61: BAD_CONTENT_ENCODING (unrecognized transfer encoding)
•62: LDAP_INVALID_URL (invalid LDAP URL)
•63: FILESIZE_EXCEEDED (maximum file size exceeded)
•64: USE_SSL_FAILED (failure on requested FTP SSL level)
•65: SEND_FAIL_REWIND (sending data requires a rewind operation that failed)
•66: SSL_ENGINE_INITFAILED (failure when initializing SSL engine)
•67: LOGIN_DENIED (user and password not accepted and login failed)
•68: TFTP_NOTFOUND (file not found on the server)
•69: TFTP_PERM (permission problem on the server)
•70: REMOTE_DISK_FULL (disk is full on the server)
•71: TFTP_ILLEGAL (illegal TFTP operation)
•72: TFTP_UNKNOWNID (unknown transfer ID)
•73: REMOTE_FILE_EXISTS (file already exists)
•74: TFTP_NOSUCHUSER (user not found)
•75: CONV_FAILED (failure on conversion)
•76: CONV_REQD (user 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)
•77: SSL_CACERT_BADFILE (cannot load CACERT file, this file does not exist, or its format is wrong)
•78: REMOTE_FILE_NOT_FOUND (remote file not found)
•79: SSH (error on SSH layer)
•80: SSL_SHUTDOWN_FAILED (failure when finishing SSL connection)
•81: AGAIN (socket is not ready for SEND or RECV commands, please wait and try again)
•82: SSL_CRL_BADFILE
•83: SSL_ISSUER_ERROR