xref: /aosp_15_r20/external/curl/docs/cmdline-opts/_EXITCODES.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<!-- Copyright (C) Daniel Stenberg, <[email protected]>, et al. -->
2*6236dae4SAndroid Build Coastguard Worker<!-- SPDX-License-Identifier: curl -->
3*6236dae4SAndroid Build Coastguard Worker# EXIT CODES
4*6236dae4SAndroid Build Coastguard WorkerThere are a bunch of different error codes and their corresponding error
5*6236dae4SAndroid Build Coastguard Workermessages that may appear under error conditions. At the time of this writing,
6*6236dae4SAndroid Build Coastguard Workerthe exit codes are:
7*6236dae4SAndroid Build Coastguard Worker## 0
8*6236dae4SAndroid Build Coastguard WorkerSuccess. The operation completed successfully according to the instructions.
9*6236dae4SAndroid Build Coastguard Worker## 1
10*6236dae4SAndroid Build Coastguard WorkerUnsupported protocol. This build of curl has no support for this protocol.
11*6236dae4SAndroid Build Coastguard Worker## 2
12*6236dae4SAndroid Build Coastguard WorkerFailed to initialize.
13*6236dae4SAndroid Build Coastguard Worker## 3
14*6236dae4SAndroid Build Coastguard WorkerURL malformed. The syntax was not correct.
15*6236dae4SAndroid Build Coastguard Worker## 4
16*6236dae4SAndroid Build Coastguard WorkerA feature or option that was needed to perform the desired request was not
17*6236dae4SAndroid Build Coastguard Workerenabled or was explicitly disabled at build-time. To make curl able to do
18*6236dae4SAndroid Build Coastguard Workerthis, you probably need another build of libcurl.
19*6236dae4SAndroid Build Coastguard Worker## 5
20*6236dae4SAndroid Build Coastguard WorkerCould not resolve proxy. The given proxy host could not be resolved.
21*6236dae4SAndroid Build Coastguard Worker## 6
22*6236dae4SAndroid Build Coastguard WorkerCould not resolve host. The given remote host could not be resolved.
23*6236dae4SAndroid Build Coastguard Worker## 7
24*6236dae4SAndroid Build Coastguard WorkerFailed to connect to host.
25*6236dae4SAndroid Build Coastguard Worker## 8
26*6236dae4SAndroid Build Coastguard WorkerWeird server reply. The server sent data curl could not parse.
27*6236dae4SAndroid Build Coastguard Worker## 9
28*6236dae4SAndroid Build Coastguard WorkerFTP access denied. The server denied login or denied access to the particular
29*6236dae4SAndroid Build Coastguard Workerresource or directory you wanted to reach. Most often you tried to change to a
30*6236dae4SAndroid Build Coastguard Workerdirectory that does not exist on the server.
31*6236dae4SAndroid Build Coastguard Worker## 10
32*6236dae4SAndroid Build Coastguard WorkerFTP accept failed. While waiting for the server to connect back when an active
33*6236dae4SAndroid Build Coastguard WorkerFTP session is used, an error code was sent over the control connection or
34*6236dae4SAndroid Build Coastguard Workersimilar.
35*6236dae4SAndroid Build Coastguard Worker## 11
36*6236dae4SAndroid Build Coastguard WorkerFTP weird PASS reply. Curl could not parse the reply sent to the PASS request.
37*6236dae4SAndroid Build Coastguard Worker## 12
38*6236dae4SAndroid Build Coastguard WorkerDuring an active FTP session while waiting for the server to connect back to
39*6236dae4SAndroid Build Coastguard Workercurl, the timeout expired.
40*6236dae4SAndroid Build Coastguard Worker## 13
41*6236dae4SAndroid Build Coastguard WorkerFTP weird PASV reply, Curl could not parse the reply sent to the PASV request.
42*6236dae4SAndroid Build Coastguard Worker## 14
43*6236dae4SAndroid Build Coastguard WorkerFTP weird 227 format. Curl could not parse the 227-line the server sent.
44*6236dae4SAndroid Build Coastguard Worker## 15
45*6236dae4SAndroid Build Coastguard WorkerFTP cannot use host. Could not resolve the host IP we got in the 227-line.
46*6236dae4SAndroid Build Coastguard Worker## 16
47*6236dae4SAndroid Build Coastguard WorkerHTTP/2 error. A problem was detected in the HTTP2 framing layer. This is
48*6236dae4SAndroid Build Coastguard Workersomewhat generic and can be one out of several problems, see the error message
49*6236dae4SAndroid Build Coastguard Workerfor details.
50*6236dae4SAndroid Build Coastguard Worker## 17
51*6236dae4SAndroid Build Coastguard WorkerFTP could not set binary. Could not change transfer method to binary.
52*6236dae4SAndroid Build Coastguard Worker## 18
53*6236dae4SAndroid Build Coastguard WorkerPartial file. Only a part of the file was transferred.
54*6236dae4SAndroid Build Coastguard Worker## 19
55*6236dae4SAndroid Build Coastguard WorkerFTP could not download/access the given file, the RETR (or similar) command
56*6236dae4SAndroid Build Coastguard Workerfailed.
57*6236dae4SAndroid Build Coastguard Worker## 21
58*6236dae4SAndroid Build Coastguard WorkerFTP quote error. A quote command returned error from the server.
59*6236dae4SAndroid Build Coastguard Worker## 22
60*6236dae4SAndroid Build Coastguard WorkerHTTP page not retrieved. The requested URL was not found or returned another
61*6236dae4SAndroid Build Coastguard Workererror with the HTTP error code being 400 or above. This return code only
62*6236dae4SAndroid Build Coastguard Workerappears if --fail is used.
63*6236dae4SAndroid Build Coastguard Worker## 23
64*6236dae4SAndroid Build Coastguard WorkerWrite error. Curl could not write data to a local filesystem or similar.
65*6236dae4SAndroid Build Coastguard Worker## 25
66*6236dae4SAndroid Build Coastguard WorkerFailed starting the upload. For FTP, the server typically denied the STOR
67*6236dae4SAndroid Build Coastguard Workercommand.
68*6236dae4SAndroid Build Coastguard Worker## 26
69*6236dae4SAndroid Build Coastguard WorkerRead error. Various reading problems.
70*6236dae4SAndroid Build Coastguard Worker## 27
71*6236dae4SAndroid Build Coastguard WorkerOut of memory. A memory allocation request failed.
72*6236dae4SAndroid Build Coastguard Worker## 28
73*6236dae4SAndroid Build Coastguard WorkerOperation timeout. The specified time-out period was reached according to the
74*6236dae4SAndroid Build Coastguard Workerconditions.
75*6236dae4SAndroid Build Coastguard Worker## 30
76*6236dae4SAndroid Build Coastguard WorkerFTP PORT failed. The PORT command failed. Not all FTP servers support the PORT
77*6236dae4SAndroid Build Coastguard Workercommand, try doing a transfer using PASV instead.
78*6236dae4SAndroid Build Coastguard Worker## 31
79*6236dae4SAndroid Build Coastguard WorkerFTP could not use REST. The REST command failed. This command is used for
80*6236dae4SAndroid Build Coastguard Workerresumed FTP transfers.
81*6236dae4SAndroid Build Coastguard Worker## 33
82*6236dae4SAndroid Build Coastguard WorkerHTTP range error. The range "command" did not work.
83*6236dae4SAndroid Build Coastguard Worker## 34
84*6236dae4SAndroid Build Coastguard WorkerHTTP post error. Internal post-request generation error.
85*6236dae4SAndroid Build Coastguard Worker## 35
86*6236dae4SAndroid Build Coastguard WorkerSSL connect error. The SSL handshaking failed.
87*6236dae4SAndroid Build Coastguard Worker## 36
88*6236dae4SAndroid Build Coastguard WorkerBad download resume. Could not continue an earlier aborted download.
89*6236dae4SAndroid Build Coastguard Worker## 37
90*6236dae4SAndroid Build Coastguard WorkerFILE could not read file. Failed to open the file. Permissions?
91*6236dae4SAndroid Build Coastguard Worker## 38
92*6236dae4SAndroid Build Coastguard WorkerLDAP cannot bind. LDAP bind operation failed.
93*6236dae4SAndroid Build Coastguard Worker## 39
94*6236dae4SAndroid Build Coastguard WorkerLDAP search failed.
95*6236dae4SAndroid Build Coastguard Worker## 41
96*6236dae4SAndroid Build Coastguard WorkerFunction not found. A required LDAP function was not found.
97*6236dae4SAndroid Build Coastguard Worker## 42
98*6236dae4SAndroid Build Coastguard WorkerAborted by callback. An application told curl to abort the operation.
99*6236dae4SAndroid Build Coastguard Worker## 43
100*6236dae4SAndroid Build Coastguard WorkerInternal error. A function was called with a bad parameter.
101*6236dae4SAndroid Build Coastguard Worker## 45
102*6236dae4SAndroid Build Coastguard WorkerInterface error. A specified outgoing interface could not be used.
103*6236dae4SAndroid Build Coastguard Worker## 47
104*6236dae4SAndroid Build Coastguard WorkerToo many redirects. When following redirects, curl hit the maximum amount.
105*6236dae4SAndroid Build Coastguard Worker## 48
106*6236dae4SAndroid Build Coastguard WorkerUnknown option specified to libcurl. This indicates that you passed a weird
107*6236dae4SAndroid Build Coastguard Workeroption to curl that was passed on to libcurl and rejected. Read up in the
108*6236dae4SAndroid Build Coastguard Workermanual.
109*6236dae4SAndroid Build Coastguard Worker## 49
110*6236dae4SAndroid Build Coastguard WorkerMalformed telnet option.
111*6236dae4SAndroid Build Coastguard Worker## 52
112*6236dae4SAndroid Build Coastguard WorkerThe server did not reply anything, which here is considered an error.
113*6236dae4SAndroid Build Coastguard Worker## 53
114*6236dae4SAndroid Build Coastguard WorkerSSL crypto engine not found.
115*6236dae4SAndroid Build Coastguard Worker## 54
116*6236dae4SAndroid Build Coastguard WorkerCannot set SSL crypto engine as default.
117*6236dae4SAndroid Build Coastguard Worker## 55
118*6236dae4SAndroid Build Coastguard WorkerFailed sending network data.
119*6236dae4SAndroid Build Coastguard Worker## 56
120*6236dae4SAndroid Build Coastguard WorkerFailure in receiving network data.
121*6236dae4SAndroid Build Coastguard Worker## 58
122*6236dae4SAndroid Build Coastguard WorkerProblem with the local certificate.
123*6236dae4SAndroid Build Coastguard Worker## 59
124*6236dae4SAndroid Build Coastguard WorkerCould not use specified SSL cipher.
125*6236dae4SAndroid Build Coastguard Worker## 60
126*6236dae4SAndroid Build Coastguard WorkerPeer certificate cannot be authenticated with known CA certificates.
127*6236dae4SAndroid Build Coastguard Worker## 61
128*6236dae4SAndroid Build Coastguard WorkerUnrecognized transfer encoding.
129*6236dae4SAndroid Build Coastguard Worker## 63
130*6236dae4SAndroid Build Coastguard WorkerMaximum file size exceeded.
131*6236dae4SAndroid Build Coastguard Worker## 64
132*6236dae4SAndroid Build Coastguard WorkerRequested FTP SSL level failed.
133*6236dae4SAndroid Build Coastguard Worker## 65
134*6236dae4SAndroid Build Coastguard WorkerSending the data requires a rewind that failed.
135*6236dae4SAndroid Build Coastguard Worker## 66
136*6236dae4SAndroid Build Coastguard WorkerFailed to initialize SSL Engine.
137*6236dae4SAndroid Build Coastguard Worker## 67
138*6236dae4SAndroid Build Coastguard WorkerThe username, password, or similar was not accepted and curl failed to log in.
139*6236dae4SAndroid Build Coastguard Worker## 68
140*6236dae4SAndroid Build Coastguard WorkerFile not found on TFTP server.
141*6236dae4SAndroid Build Coastguard Worker## 69
142*6236dae4SAndroid Build Coastguard WorkerPermission problem on TFTP server.
143*6236dae4SAndroid Build Coastguard Worker## 70
144*6236dae4SAndroid Build Coastguard WorkerOut of disk space on TFTP server.
145*6236dae4SAndroid Build Coastguard Worker## 71
146*6236dae4SAndroid Build Coastguard WorkerIllegal TFTP operation.
147*6236dae4SAndroid Build Coastguard Worker## 72
148*6236dae4SAndroid Build Coastguard WorkerUnknown TFTP transfer ID.
149*6236dae4SAndroid Build Coastguard Worker## 73
150*6236dae4SAndroid Build Coastguard WorkerFile already exists (TFTP).
151*6236dae4SAndroid Build Coastguard Worker## 74
152*6236dae4SAndroid Build Coastguard WorkerNo such user (TFTP).
153*6236dae4SAndroid Build Coastguard Worker## 77
154*6236dae4SAndroid Build Coastguard WorkerProblem reading the SSL CA cert (path? access rights?).
155*6236dae4SAndroid Build Coastguard Worker## 78
156*6236dae4SAndroid Build Coastguard WorkerThe resource referenced in the URL does not exist.
157*6236dae4SAndroid Build Coastguard Worker## 79
158*6236dae4SAndroid Build Coastguard WorkerAn unspecified error occurred during the SSH session.
159*6236dae4SAndroid Build Coastguard Worker## 80
160*6236dae4SAndroid Build Coastguard WorkerFailed to shut down the SSL connection.
161*6236dae4SAndroid Build Coastguard Worker## 82
162*6236dae4SAndroid Build Coastguard WorkerCould not load CRL file, missing or wrong format (added in 7.19.0).
163*6236dae4SAndroid Build Coastguard Worker## 83
164*6236dae4SAndroid Build Coastguard WorkerIssuer check failed (added in 7.19.0).
165*6236dae4SAndroid Build Coastguard Worker## 84
166*6236dae4SAndroid Build Coastguard WorkerThe FTP PRET command failed.
167*6236dae4SAndroid Build Coastguard Worker## 85
168*6236dae4SAndroid Build Coastguard WorkerMismatch of RTSP CSeq numbers.
169*6236dae4SAndroid Build Coastguard Worker## 86
170*6236dae4SAndroid Build Coastguard WorkerMismatch of RTSP Session Identifiers.
171*6236dae4SAndroid Build Coastguard Worker## 87
172*6236dae4SAndroid Build Coastguard WorkerUnable to parse FTP file list.
173*6236dae4SAndroid Build Coastguard Worker## 88
174*6236dae4SAndroid Build Coastguard WorkerFTP chunk callback reported error.
175*6236dae4SAndroid Build Coastguard Worker## 89
176*6236dae4SAndroid Build Coastguard WorkerNo connection available, the session is queued.
177*6236dae4SAndroid Build Coastguard Worker## 90
178*6236dae4SAndroid Build Coastguard WorkerSSL public key does not matched pinned public key.
179*6236dae4SAndroid Build Coastguard Worker## 91
180*6236dae4SAndroid Build Coastguard WorkerInvalid SSL certificate status.
181*6236dae4SAndroid Build Coastguard Worker## 92
182*6236dae4SAndroid Build Coastguard WorkerStream error in HTTP/2 framing layer.
183*6236dae4SAndroid Build Coastguard Worker## 93
184*6236dae4SAndroid Build Coastguard WorkerAn API function was called from inside a callback.
185*6236dae4SAndroid Build Coastguard Worker## 94
186*6236dae4SAndroid Build Coastguard WorkerAn authentication function returned an error.
187*6236dae4SAndroid Build Coastguard Worker## 95
188*6236dae4SAndroid Build Coastguard WorkerA problem was detected in the HTTP/3 layer. This is somewhat generic and can
189*6236dae4SAndroid Build Coastguard Workerbe one out of several problems, see the error message for details.
190*6236dae4SAndroid Build Coastguard Worker## 96
191*6236dae4SAndroid Build Coastguard WorkerQUIC connection error. This error may be caused by an SSL library error. QUIC
192*6236dae4SAndroid Build Coastguard Workeris the protocol used for HTTP/3 transfers.
193*6236dae4SAndroid Build Coastguard Worker## 97
194*6236dae4SAndroid Build Coastguard WorkerProxy handshake error.
195*6236dae4SAndroid Build Coastguard Worker## 98
196*6236dae4SAndroid Build Coastguard WorkerA client-side certificate is required to complete the TLS handshake.
197*6236dae4SAndroid Build Coastguard Worker## 99
198*6236dae4SAndroid Build Coastguard WorkerPoll or select returned fatal error.
199*6236dae4SAndroid Build Coastguard Worker## 100
200*6236dae4SAndroid Build Coastguard WorkerA value or data field grew larger than allowed.
201*6236dae4SAndroid Build Coastguard Worker## XX
202*6236dae4SAndroid Build Coastguard WorkerMore error codes might appear here in future releases. The existing ones are
203*6236dae4SAndroid Build Coastguard Workermeant to never change.
204