cURL error错误代码中英文对照列表大全,LAMPLNMP分享:
cURL error错误码中文说明
状态码 | 状态原因 | 解释 |
0 | 正常访问 | |
1 | 错误的协议 | 未支持的协议。此版cURL 不支持这一协议。 |
2 | 初始化代码失败 | 初始化失败。 |
3 | URL格式不正确 | URL 格式错误。语法不正确。 |
4 | 请求协议错误 | |
5 | 无法解析代理 | 无法解析代理。无法解析给定代理主机。 |
6 | 无法解析主机地址 | 无法解析主机。无法解析给定的远程主机。 |
7 | 无法连接到主机 | 无法连接到主机。 |
8 | 远程服务器不可用 | FTP 非正常的服务器应答。cURL 无法解析服务器发送的数据。 |
9 | 访问资源错误 | FTP 访问被拒绝。服务器拒绝登入或无法获取您想要的特定资源或目录。最有可 能的是您试图进入一个在此服务器上不存在的目录。 |
11 | FTP密码错误 | FTP 非正常的PASS 回复。cURL 无法解析发送到PASS 请求的应答。 |
13 | 结果错误 | FTP 非正常的的PASV 应答,cURL 无法解析发送到PASV 请求的应答。 |
14 | FTP回应PASV命令 | FTP 非正常的227格式。cURL 无法解析服务器发送的227行。 |
15 | 内部故障 | FTP 无法连接到主机。无法解析在227行中获取的主机IP。 |
17 | 设置传输模式为二进制 | FTP 无法设定为二进制传输。无法改变传输方式到二进制。 |
18 | 文件传输短或大于预期 | 部分文件。只有部分文件被传输。 |
19 | RETR命令传输完成 | FTP 不能下载/访问给定的文件, RETR (或类似)命令失败。 |
21 | 命令成功完成 | FTP quote 错误。quote 命令从服务器返回错误。 |
22 | 返回正常 | HTTP 找不到网页。找不到所请求的URL 或返回另一个HTTP 400或以上错误。 此返回代码只出现在使用了-f/--fail 选项以后。 |
23 | 数据写入失败 | 写入错误。cURL 无法向本地文件系统或类似目的写入数据。 |
25 | 无法启动上传 | FTP 无法STOR 文件。服务器拒绝了用于FTP 上传的STOR 操作。 |
26 | 回调错误 | 读错误。各类读取问题。 |
27 | 内存分配请求失败 | 内存不足。内存分配请求失败。 |
28 | 访问超时 | 操作超时。到达指定的超时期限条件。 |
30 | FTP端口错误 | FTP PORT 失败。PORT 命令失败。并非所有的FTP 服务器支持PORT 命令,请 尝试使用被动(PASV)传输代替! |
31 | FTP错误 | FTP 无法使用REST 命令。REST 命令失败。此命令用来恢复的FTP 传输。 |
33 | 不支持请求 | HTTP range 错误。range "命令"不起作用。 |
34 | 内部发生错误 | HTTP POST 错误。内部POST 请求产生错误。 |
35 | SSL/TLS握手失败 | SSL 连接错误。SSL 握手失败。 |
36 | 下载无法恢复 | FTP 续传损坏。不能继续早些时候被中止的下载。 |
37 | 文件权限错误 | 文件无法读取。无法打开文件。权限问题? |
38 | LDAP可没有约束力 | LDAP 无法绑定。LDAP 绑定(bind)操作失败。 |
39 | LDAP搜索失败 | LDAP 搜索失败。 |
41 | 函数没有找到 | 功能无法找到。无法找到必要的LDAP 功能。 |
42 | 中止的回调 | 由回调终止。应用程序告知cURL 终止运作。 |
43 | 内部错误 | 内部错误。由一个不正确参数调用了功能。 |
45 | 接口错误 | 接口错误。指定的外发接口无法使用。 |
47 | 过多的重定向 | 过多的重定向。cURL 达到了跟随重定向设定的最大限额跟 |
48 | 无法识别选项 | 指定了未知TELNET 选项。 |
49 | TELNET格式错误 | 不合式的telnet 选项。 |
51 | 远程服务器的SSL证书 | peer 的SSL 证书或SSH 的MD5指纹没有确定。 |
52 | 服务器无返回内容 | 服务器无任何应答,该情况在此处被认为是一个错误。 |
53 | 加密引擎未找到 | 找不到SSL 加密引擎。 |
54 | 设定默认SSL加密失败 | 无法将SSL 加密引擎设置为默认。 |
55 | 无法发送网络数据 | 发送网络数据失败。 |
56 | 衰竭接收网络数据 | 在接收网络数据时失败。 |
58 | 本地客户端证书 | 本地证书有问题。 |
59 | 无法使用密码 | 无法使用指定的SSL 密码。 |
60 | 凭证无法验证 | peer 证书无法被已知的CA 证书验证。 |
61 | 无法识别的传输编码 | 无法辨识的传输编码。 |
62 | 无效的LDAP URL | 无效的LDAP URL。 |
63 | 文件超过最大大小 | 超过最大文件尺寸。 |
64 | FTP失败 | 要求的FTP 的SSL 水平失败。 |
65 | 倒带操作失败 | 发送此数据需要的回卷(rewind)失败。 |
66 | SSL引擎失败 | 初始化SSL 引擎失败。 |
67 | 服务器拒绝登录 | 用户名、密码或类似的信息未被接受,cURL 登录失败。 |
68 | 未找到文件 | 在TFTP 服务器上找不到文件。 |
69 | 无权限 | TFTP 服务器权限有问题。 |
70 | 超出服务器磁盘空间 | TFTP 服务器磁盘空间不足。 |
71 | 非法TFTP操作 | 非法的TFTP 操作。 |
72 | 未知TFTP传输的ID | 未知TFTP 传输编号(ID)。 |
73 | 文件已经存在 | 文件已存在(TFTP) 。 |
74 | 错误TFTP服务器 | 无此用户(TFTP) 。 |
75 | 字符转换失败 | 字符转换失败。 |
76 | 必须记录回调 | 需要字符转换功能。 |
77 | CA证书权限 | 读SSL 证书出现问题(路径?访问权限? ) 。 |
78 | URL中引用资源不存在 | URL 中引用的资源不存在。 |
79 | 错误发生在SSH会话 | SSH 会话期间发生一个未知错误。 |
80 | 无法关闭SSL连接 | 未能关闭SSL 连接。 |
81 | 服务未准备 | |
82 | 无法载入CRL文件 | 无法加载CRL 文件,丢失或格式不正确(在7.19.0版中增加) 。 |
83 | 发行人检查失败 | 签发检查失败(在7.19.0版中增加) 。 |
cURL error错误码英文说明
CURLE_OK (0)
All fine. Proceed as usual.
CURLE_UNSUPPORTED_PROTOCOL (1)
The URL you passed to libcurl used a protocol that this libcurl does not support. The support might be a compile-time option that you didn't use, it can be a misspelled protocol string or just a protocol libcurl has no code for.
CURLE_FAILED_INIT (2)
Very early initialization code failed. This is likely to be an internal error or problem, or a resource problem where something fundamental couldn't get done at init time.
CURLE_URL_MALFORMAT (3)
The URL was not properly formatted.
CURLE_NOT_BUILT_IN (4)
A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision. This means that a feature or option was not enabled or explicitly disabled when libcurl was built and in order to get it to function you have to get a rebuilt libcurl.
CURLE_COULDNT_RESOLVE_PROXY (5)
Couldn't resolve proxy. The given proxy host could not be resolved.
CURLE_COULDNT_RESOLVE_HOST (6)
Couldn't resolve host. The given remote host was not resolved.
CURLE_COULDNT_CONNECT (7)
Failed to connect() to host or proxy.
CURLE_FTP_WEIRD_SERVER_REPLY (8)
The server sent data libcurl couldn't parse. This error code is used for more than just FTP and is aliased as CURLE_WEIRD_SERVER_REPLY since 7.51.0.
CURLE_REMOTE_ACCESS_DENIED (9)
We were denied access to the resource given in the URL. For FTP, this occurs while trying to change to the remote directory.
CURLE_FTP_ACCEPT_FAILED (10)
While waiting for the server to connect back when an active FTP session is used, an error code was sent over the control connection or similar.
CURLE_FTP_WEIRD_PASS_REPLY (11)
After having sent the FTP password to the server, libcurl expects a proper reply. This error code indicates that an unexpected code was returned.
CURLE_FTP_ACCEPT_TIMEOUT (12)
During an active FTP session while waiting for the server to connect, the CURLOPT_ACCEPTTIMEOUT_MS (or the internal default) timeout expired.
CURLE_FTP_WEIRD_PASV_REPLY (13)
libcurl failed to get a sensible result back from the server as a response to either a PASV or a EPSV command. The server is flawed.
CURLE_FTP_WEIRD_227_FORMAT (14)
FTP servers return a 227-line as a response to a PASV command. If libcurl fails to parse that line, this return code is passed back.
CURLE_FTP_CANT_GET_HOST (15)
An internal failure to lookup the host used for the new connection.
CURLE_HTTP2 (16)
A problem was detected in the HTTP2 framing layer. This is somewhat generic and can be one out of several problems, see the error buffer for details.
CURLE_FTP_COULDNT_SET_TYPE (17)
Received an error when trying to set the transfer mode to binary or ASCII.
CURLE_PARTIAL_FILE (18)
A file transfer was shorter or larger than expected. This happens when the server first reports an expected transfer size, and then delivers data that doesn't match the previously given size.
CURLE_FTP_COULDNT_RETR_FILE (19)
This was either a weird reply to a 'RETR' command or a zero byte transfer complete.
CURLE_QUOTE_ERROR (21)
When sending custom "QUOTE" commands to the remote server, one of the commands returned an error code that was 400 or higher (for FTP) or otherwise indicated unsuccessful completion of the command.
CURLE_HTTP_RETURNED_ERROR (22)
This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that is >= 400.
CURLE_WRITE_ERROR (23)
An error occurred when writing received data to a local file, or an error was returned to libcurl from a write callback.
CURLE_UPLOAD_FAILED (25)
Failed starting the upload. For FTP, the server typically denied the STOR command. The error buffer usually contains the server's explanation for this.
CURLE_READ_ERROR (26)
There was a problem reading a local file or an error returned by the read callback.
CURLE_OUT_OF_MEMORY (27)
A memory allocation request failed. This is serious badness and things are severely screwed up if this ever occurs.
CURLE_OPERATION_TIMEDOUT (28)
Operation timeout. The specified time-out period was reached according to the conditions.
CURLE_FTP_PORT_FAILED (30)
The FTP PORT command returned error. This mostly happens when you haven't specified a good enough address for libcurl to use. See CURLOPT_FTPPORT.
CURLE_FTP_COULDNT_USE_REST (31)
The FTP REST command returned error. This should never happen if the server is sane.
CURLE_RANGE_ERROR (33)
The server does not support or accept range requests.
CURLE_HTTP_POST_ERROR (34)
This is an odd error that mainly occurs due to internal confusion.
CURLE_SSL_CONNECT_ERROR (35)
A problem occurred somewhere in the SSL/TLS handshake. You really want the error buffer and read the message there as it pinpoints the problem slightly more. Could be certificates (file formats, paths, permissions), passwords, and others.
CURLE_BAD_DOWNLOAD_RESUME (36)
The download could not be resumed because the specified offset was out of the file boundary.
CURLE_FILE_COULDNT_READ_FILE (37)
A file given with FILE:// couldn't be opened. Most likely because the file path doesn't identify an existing file. Did you check file permissions?
CURLE_LDAP_CANNOT_BIND (38)
LDAP cannot bind. LDAP bind operation failed.
CURLE_LDAP_SEARCH_FAILED (39)
LDAP search failed.
CURLE_FUNCTION_NOT_FOUND (41)
Function not found. A required zlib function was not found.
CURLE_ABORTED_BY_CALLBACK (42)
Aborted by callback. A callback returned "abort" to libcurl.
CURLE_BAD_FUNCTION_ARGUMENT (43)
Internal error. A function was called with a bad parameter.
CURLE_INTERFACE_FAILED (45)
Interface error. A specified outgoing interface could not be used. Set which interface to use for outgoing connections' source IP address with CURLOPT_INTERFACE.
CURLE_TOO_MANY_REDIRECTS (47)
Too many redirects. When following redirects, libcurl hit the maximum amount. Set your limit with CURLOPT_MAXREDIRS.
CURLE_UNKNOWN_OPTION (48)
An option passed to libcurl is not recognized/known. Refer to the appropriate documentation. This is most likely a problem in the program that uses libcurl. The error buffer might contain more specific information about which exact option it concerns.
CURLE_TELNET_OPTION_SYNTAX (49)
A telnet option string was Illegally formatted.
CURLE_PEER_FAILED_VERIFICATION (51)
The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK.
CURLE_GOT_NOTHING (52)
Nothing was returned from the server, and under the circumstances, getting nothing is considered an error.
CURLE_SSL_ENGINE_NOTFOUND (53)
The specified crypto engine wasn't found.
CURLE_SSL_ENGINE_SETFAILED (54)
Failed setting the selected SSL crypto engine as default!
CURLE_SEND_ERROR (55)
Failed sending network data.
CURLE_RECV_ERROR (56)
Failure with receiving network data.
CURLE_SSL_CERTPROBLEM (58)
problem with the local client certificate.
CURLE_SSL_CIPHER (59)
Couldn't use specified cipher.
CURLE_SSL_CACERT (60)
Peer certificate cannot be authenticated with known CA certificates.
CURLE_BAD_CONTENT_ENCODING (61)
Unrecognized transfer encoding.
CURLE_LDAP_INVALID_URL (62)
Invalid LDAP URL.
CURLE_FILESIZE_EXCEEDED (63)
Maximum file size exceeded.
CURLE_USE_SSL_FAILED (64)
Requested FTP SSL level failed.
CURLE_SEND_FAIL_REWIND (65)
When doing a send operation curl had to rewind the data to retransmit, but the rewinding operation failed.
CURLE_SSL_ENGINE_INITFAILED (66)
Initiating the SSL Engine failed.
CURLE_LOGIN_DENIED (67)
The remote server denied curl to login (Added in 7.13.1)
CURLE_TFTP_NOTFOUND (68)
File not found on TFTP server.
CURLE_TFTP_PERM (69)
Permission problem on TFTP server.
CURLE_REMOTE_DISK_FULL (70)
Out of disk space on the server.
CURLE_TFTP_ILLEGAL (71)
Illegal TFTP operation.
CURLE_TFTP_UNKNOWNID (72)
Unknown TFTP transfer ID.
CURLE_REMOTE_FILE_EXISTS (73)
File already exists and will not be overwritten.
CURLE_TFTP_NOSUCHUSER (74)
This error should never be returned by a properly functioning TFTP server.
CURLE_CONV_FAILED (75)
Character conversion failed.
CURLE_CONV_REQD (76)
Caller must register conversion callbacks.
CURLE_SSL_CACERT_BADFILE (77)
Problem with reading the SSL CA cert (path? access rights?)
CURLE_REMOTE_FILE_NOT_FOUND (78)
The resource referenced in the URL does not exist.
CURLE_SSH (79)
An unspecified error occurred during the SSH session.
CURLE_SSL_SHUTDOWN_FAILED (80)
Failed to shut down the SSL connection.
CURLE_AGAIN (81)
Socket is not ready for send/recv wait till it's ready and try again. This return code is only returned from curl_easy_recv and curl_easy_send (Added in 7.18.2)
CURLE_SSL_CRL_BADFILE (82)
Failed to load CRL file (Added in 7.19.0)
CURLE_SSL_ISSUER_ERROR (83)
Issuer check failed (Added in 7.19.0)
CURLE_FTP_PRET_FAILED (84)
The FTP server does not understand the PRET command at all or does not support the given argument. Be careful when using CURLOPT_CUSTOMREQUEST, a custom LIST command will be sent with PRET CMD before PASV as well. (Added in 7.20.0)
CURLE_RTSP_CSEQ_ERROR (85)
Mismatch of RTSP CSeq numbers.
CURLE_RTSP_SESSION_ERROR (86)
Mismatch of RTSP Session Identifiers.
CURLE_FTP_BAD_FILE_LIST (87)
Unable to parse FTP file list (during FTP wildcard downloading).
CURLE_CHUNK_FAILED (88)
Chunk callback reported error.
CURLE_NO_CONNECTION_AVAILABLE (89)
(For internal use only, will never be returned by libcurl) No connection available, the session will be queued. (added in 7.30.0)
CURLE_SSL_PINNEDPUBKEYNOTMATCH (90)
Failed to match the pinned key specified with CURLOPT_PINNEDPUBLICKEY.
CURLE_SSL_INVALIDCERTSTATUS (91)
Status returned failure when asked with CURLOPT_SSL_VERIFYSTATUS.
CURLE_HTTP2_STREAM (92)
Stream error in the HTTP/2 framing layer.
CURLE_RECURSIVE_API_CALL (93)
An API function was called from inside a callback.
CURLE_OBSOLETE*
These error codes will never be returned. They were used in an old libcurl version and are currently unused.
2023腾讯云服务器超便宜,这个价格太可以了,抓紧上车!
- 2核2G3M服务器30元/3个月:点此直达
- 阿里云2核2G3M带宽108元一年,2核4G...
- 2核2G3M服务器95元一年:点此直达
- 2核2G4M服务器112元/1年:点此直达
- 2核2G4M服务器396元/1年:点此直达
- 2核4G5M服务器168元/3年:点此直达
- 2核4G5M服务器628元/3年:点此直达
- 4核8G12M服务器446元/1年 518元15个月:点此直达
- 8核16G18M服务器1668元/15个月
- 16核32G28M服务器3468元/15个月
注意:以上特价轻量服务器限制条件为“产品首单特惠”,如果你的腾讯云账号已经是老用户,建议重新注册一个腾讯云账号,如果你是新用户符合条件,那么无脑入,这个CPU内存带宽配置,价格确实便宜,值得买!
2023云服务器价格出炉,又降价了!
阿里云:阿里云2核4G服务器6M带宽68元一年起(价格便宜多配置可选)
腾讯云:腾讯云2核4G8M服务器70元一年(查看更多配置报价)
华为云:2023华为云优惠活动云服务器39元一年起(查看更多配置报价)
发表评论