-
Notifications
You must be signed in to change notification settings - Fork 5
/
curl_errors.sh
executable file
·101 lines (99 loc) · 6.9 KB
/
curl_errors.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# All curl error codes
# Gathered from curl man page
curl_errors[0]="Success. The operation completed successfully according to the instructions."
curl_errors[1]="Unsupported protocol. This build of curl has no support for this protocol."
curl_errors[2]="Failed to initialize."
curl_errors[3]="URL malformed. The syntax was not correct."
curl_errors[4]="A feature or option that was needed to perform the desired request was not enabled or was explicitly disabled at build-time. To make curl able to do this, you probably need another build of libcurl."
curl_errors[5]="Could not resolve proxy. The given proxy host could not be resolved."
curl_errors[6]="Could not resolve host. The given remote host could not be resolved."
curl_errors[7]="Failed to connect to host."
curl_errors[8]="Weird server reply. The server sent data curl could not parse."
curl_errors[9]="FTP access denied. The server denied login or denied access to the particular resource or directory you wanted to reach. Most often you tried to change to a directory that does not exist on the server."
curl_errors[10]="FTP accept failed. 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."
curl_errors[11]="FTP weird PASS reply. Curl could not parse the reply sent to the PASS request."
curl_errors[12]="During an active FTP session while waiting for the server to connect back to curl, the timeout expired."
curl_errors[13]="FTP weird PASV reply, Curl could not parse the reply sent to the PASV request."
curl_errors[14]="FTP weird 227 format. Curl could not parse the 227-line the server sent."
curl_errors[15]="FTP cannot use host. Could not resolve the host IP we got in the 227-line."
curl_errors[16]="HTTP/2 error. A problem was detected in the HTTP2 framing layer. This is somewhat generic and can be one out of several problems, see the error message for details."
curl_errors[17]="FTP could not set binary. Could not change transfer method to binary."
curl_errors[18]="Partial file. Only a part of the file was transferred."
curl_errors[19]="FTP could not download/access the given file, the RETR (or similar) command failed."
#curl_errors[20]="NO ERROR"
curl_errors[21]="FTP quote error. A quote command returned error from the server"
curl_errors[22]="HTTP page not retrieved. The requested URL was not found or returned another error with the HTTP error code being 400 or above. This return code only appears if --fail is used."
curl_errors[23]="Write error. Curl could not write data to a local filesystem or similar."
#curl_errors[24]=""
curl_errors[25]="FTP could not STOR file. The server denied the STOR operation, used for FTP uploading."
curl_errors[26]="Read error. Various reading problems."
curl_errors[27]="Out of memory. A memory allocation request failed."
curl_errors[28]="Operation timeout. The specified time-out period was reached according to the conditions."
#curl_errors[29]=""
curl_errors[30]="FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT command, try doing a transfer using PASV instead!"
curl_errors[31]="FTP could not use REST. The REST command failed. This command is used for resumed FTP transfers."
#curl_errors[32]=""
curl_errors[33]="HTTP range error. The range 'command' did not work."
curl_errors[34]="HTTP post error. Internal post-request generation error."
curl_errors[35]="SSL connect error. The SSL handshaking failed."
curl_errors[36]="Bad download resume. Could not continue an earlier aborted download."
curl_errors[37]="FILE could not read file. Failed to open the file. Permissions?"
curl_errors[38]="LDAP cannot bind. LDAP bind operation failed."
curl_errors[39]="LDAP search failed."
#curl_errors[40]=""
curl_errors[41]="Function not found. A required LDAP function was not found."
curl_errors[42]="Aborted by callback. An application told curl to abort the operation."
curl_errors[43]="Internal error. A function was called with a bad parameter."
#curl_errors[44]=""
curl_errors[45]="Interface error. A specified outgoing interface could not be used."
#curl_errors[46]=""
curl_errors[47]="Too many redirects. When following redirects, curl hit the maximum amount."
curl_errors[48]="Unknown option specified to libcurl. This indicates that you passed a weird option to curl that was passed on to libcurl and rejected. Read up in the manual!"
curl_errors[49]="Malformed telnet option."
#curl_errors[50]=""
#curl_errors[51]=""
curl_errors[52]="The server did not reply anything, which here is considered an error."
curl_errors[53]="SSL crypto engine not found."
curl_errors[54]="Cannot set SSL crypto engine as default."
curl_errors[55]="Failed sending network data."
curl_errors[56]="Failure in receiving network data."
#curl_errors[57]=""
curl_errors[58]="Problem with the local certificate."
curl_errors[59]="Could not use specified SSL cipher."
curl_errors[60]="Peer certificate cannot be authenticated with known CA certificates."
curl_errors[61]="Unrecognized transfer encoding."
#curl_errors[62]=""
curl_errors[63]="Maximum file size exceeded."
curl_errors[64]="Requested FTP SSL level failed."
curl_errors[65]="Sending the data requires a rewind that failed."
curl_errors[66]="Failed to initialise SSL Engine."
curl_errors[67]="The user name, password, or similar was not accepted and curl failed to log in."
curl_errors[68]="File not found on TFTP server."
curl_errors[69]="Permission problem on TFTP server."
curl_errors[70]="Out of disk space on TFTP server."
curl_errors[71]="Illegal TFTP operation."
curl_errors[72]="Unknown TFTP transfer ID."
curl_errors[73]="File already exists (TFTP)."
curl_errors[74]="No such user (TFTP)."
#curl_errors[75]=""
#curl_errors[76]=""
curl_errors[77]="Problem reading the SSL CA cert (path? access rights?)."
curl_errors[78]="The resource referenced in the URL does not exist."
curl_errors[79]="An unspecified error occurred during the SSH session."
curl_errors[80]="Failed to shut down the SSL connection."
#curl_errors[81]=
curl_errors[82]="Could not load CRL file, missing or wrong format."
curl_errors[83]="Issuer check failed."
curl_errors[84]="The FTP PRET command failed."
curl_errors[85]="Mismatch of RTSP CSeq numbers."
curl_errors[86]="Mismatch of RTSP Session Identifiers."
curl_errors[87]="Unable to parse FTP file list."
curl_errors[88]="FTP chunk callback reported error."
curl_errors[89]="No connection available, the session will be queued."
curl_errors[90]="SSL public key does not matched pinned public key."
curl_errors[91]="Invalid SSL certificate status."
curl_errors[92]="Stream error in HTTP/2 framing layer."
curl_errors[93]="An API function was called from inside a callback."
curl_errors[94]="An authentication function returned an error."
curl_errors[95]="A problem was detected in the HTTP/3 layer. This is somewhat generic and can be one out of several problems, see the error message for details."
curl_errors[96]="QUIC connection error. This error may be caused by an SSL library error. QUIC is the protocol used for HTTP/3 transfers."