aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
authoronefang2019-11-25 03:51:12 +1000
committeronefang2019-11-25 03:51:12 +1000
commitc82e0df2383e45d03031a3e5f52548f3dd1de15c (patch)
treee4525afc8412a9a78d307481f2207cd69b97c95d /apt-panopticon.lua
parentClean up the timeout code. (diff)
downloadapt-panopticon-c82e0df2383e45d03031a3e5f52548f3dd1de15c.zip
apt-panopticon-c82e0df2383e45d03031a3e5f52548f3dd1de15c.tar.gz
apt-panopticon-c82e0df2383e45d03031a3e5f52548f3dd1de15c.tar.bz2
apt-panopticon-c82e0df2383e45d03031a3e5f52548f3dd1de15c.tar.xz
More curl status codes and messages.
Plus some white space clean up of that table.
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-xapt-panopticon.lua185
1 files changed, 95 insertions, 90 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index ed08c66..ee64c7c 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -110,96 +110,101 @@ local logFile
110 110
111local curlStatus = 111local curlStatus =
112{ 112{
113 [1 ] = "Unsupported protocol. This build of curl has no support for this protocol.", 113 [1 ] = "Unsupported protocol. This build of curl has no support for this protocol.",
114 [2 ] = "Failed to initialize.", 114 [2 ] = "Failed to initialize.",
115 [3 ] = "URL malformed. The syntax was not correct.", 115 [3 ] = "URL malformed. The syntax was not correct.",
116 [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!", 116 [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!",
117 [5 ] = "Couldn't resolve proxy. The given proxy host could not be resolved.", 117 [5 ] = "Couldn't resolve proxy. The given proxy host could not be resolved.",
118 [6 ] = "Couldn't resolve host. The given remote host was not resolved.", 118 [6 ] = "Couldn't resolve host. The given remote host was not resolved.",
119 [7 ] = "Failed to connect to host.", 119 [7 ] = "Failed to connect to host.",
120 [8 ] = "Weird server reply. The server sent data curl couldn't parse.", 120 [8 ] = "Weird server reply. The server sent data curl couldn't parse.",
121 [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 doesn't exist on the server.", 121 [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 doesn't exist on the server.",
122 122 [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.",
123 [11] = "FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request.", 123 [11] = "FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request.",
124 124 [12] = "During an active FTP session while waiting for the server to connect, the CURLOPT_ACCEPTTIMEOUT_MS (or the internal default) timeout expired.",
125 [13] = "FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request.", 125 [13] = "FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request.",
126 [14] = "FTP weird 227 format. Curl couldn't parse the 227-line the server sent.", 126 [14] = "FTP weird 227 format. Curl couldn't parse the 227-line the server sent.",
127 [15] = "FTP can't get host. Couldn't resolve the host IP we got in the 227-line.", 127 [15] = "FTP can't get host. Couldn't resolve the host IP we got in the 227-line.",
128 128 [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.",
129 [17] = "FTP couldn't set binary. Couldn't change transfer method to binary.", 129 [17] = "FTP couldn't set binary. Couldn't change transfer method to binary.",
130 [18] = "Partial file. Only a part of the file was transferred.", 130 [18] = "Partial file. Only a part of the file was transferred.",
131 [19] = "FTP couldn't download/access the given file, the RETR (or similar) command failed.", 131 [19] = "FTP couldn't download/access the given file, the RETR (or similar) command failed.",
132 132
133 [21] = "FTP quote error. A quote command returned error from the server.", 133 [21] = "FTP quote error. A quote command returned error from the server.",
134 [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 -f, --fail is used.", 134 [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 -f, --fail is used.",
135 [23] = "Write error. Curl couldn't write data to a local filesystem or similar.", 135 [23] = "Write error. Curl couldn't write data to a local filesystem or similar.",
136 136
137 [25] = "FTP couldn't STOR file. The server denied the STOR operation, used for FTP uploading.", 137 [25] = "FTP couldn't STOR file. The server denied the STOR operation, used for FTP uploading.",
138 [26] = "Read error. Various reading problems.", 138 [26] = "Read error. Various reading problems.",
139 [27] = "Out of memory. A memory allocation request failed.", 139 [27] = "Out of memory. A memory allocation request failed.",
140 [28] = "Operation timeout. The specified time-out period was reached according to the conditions.", 140 [28] = "Operation timeout. The specified time-out period was reached according to the conditions.",
141 141
142 [30] = "FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT command, try doing a transfer using PASV instead!", 142 [30] = "FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT command, try doing a transfer using PASV instead!",
143 [31] = "FTP couldn't use REST. The REST command failed. This command is used for resumed FTP transfers.", 143 [31] = "FTP couldn't use REST. The REST command failed. This command is used for resumed FTP transfers.",
144 144
145 [33] = "HTTP range error. The range \"command\" didn't work.", 145 [33] = "HTTP range error. The range \"command\" didn't work.",
146 [34] = "HTTP post error. Internal post-request generation error.", 146 [34] = "HTTP post error. Internal post-request generation error.",
147 [35] = "SSL connect error. The SSL handshaking failed.", 147 [35] = "SSL connect error. The SSL handshaking failed.",
148 [36] = "FTP bad download resume. Couldn't continue an earlier aborted download.", 148 [36] = "FTP bad download resume. Couldn't continue an earlier aborted download.",
149 [37] = "FILE couldn't read file. Failed to open the file. Permissions?", 149 [37] = "FILE couldn't read file. Failed to open the file. Permissions?",
150 [38] = "LDAP cannot bind. LDAP bind operation failed.", 150 [38] = "LDAP cannot bind. LDAP bind operation failed.",
151 [39] = "LDAP search failed.", 151 [39] = "LDAP search failed.",
152 152
153 [41] = "Function not found. A required LDAP function was not found.", 153 [41] = "Function not found. A required LDAP function was not found.",
154 [42] = "Aborted by callback. An application told curl to abort the operation.", 154 [42] = "Aborted by callback. An application told curl to abort the operation.",
155 [43] = "Internal error. A function was called with a bad parameter.", 155 [43] = "Internal error. A function was called with a bad parameter.",
156 156
157 [45] = "Interface error. A specified outgoing interface could not be used.", 157 [45] = "Interface error. A specified outgoing interface could not be used.",
158 158
159 [47] = "Too many redirects. When following redirects, curl hit the maximum amount.", 159 [47] = "Too many redirects. When following redirects, curl hit the maximum amount.",
160 [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!", 160 [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!",
161 [49] = "Malformed telnet option.", 161 [49] = "Malformed telnet option.",
162 162
163 [51] = "The peer's SSL certificate or SSH MD5 fingerprint was not OK.", 163 [51] = "The peer's SSL certificate or SSH MD5 fingerprint was not OK.",
164 [52] = "The server didn't reply anything, which here is considered an error.", 164 [52] = "The server didn't reply anything, which here is considered an error.",
165 [53] = "SSL crypto engine not found.", 165 [53] = "SSL crypto engine not found.",
166 [54] = "Cannot set SSL crypto engine as default.", 166 [54] = "Cannot set SSL crypto engine as default.",
167 [55] = "Failed sending network data.", 167 [55] = "Failed sending network data.",
168 [56] = "Failure in receiving network data.", 168 [56] = "Failure in receiving network data.",
169 169
170 [58] = "Problem with the local certificate.", 170 [58] = "Problem with the local certificate.",
171 [59] = "Couldn't use specified SSL cipher.", 171 [59] = "Couldn't use specified SSL cipher.",
172 [60] = "Peer certificate cannot be authenticated with known CA certificates.", 172 [60] = "Peer certificate cannot be authenticated with known CA certificates.",
173 [61] = "Unrecognized transfer encoding.", 173 [61] = "Unrecognized transfer encoding.",
174 [62] = "Invalid LDAP URL.", 174 [62] = "Invalid LDAP URL.",
175 [63] = "Maximum file size exceeded.", 175 [63] = "Maximum file size exceeded.",
176 [64] = "Requested FTP SSL level failed.", 176 [64] = "Requested FTP SSL level failed.",
177 [65] = "Sending the data requires a rewind that failed.", 177 [65] = "Sending the data requires a rewind that failed.",
178 [66] = "Failed to initialise SSL Engine.", 178 [66] = "Failed to initialise SSL Engine.",
179 [67] = "The user name, password, or similar was not accepted and curl failed to log in.", 179 [67] = "The user name, password, or similar was not accepted and curl failed to log in.",
180 [68] = "File not found on TFTP server.", 180 [68] = "File not found on TFTP server.",
181 [69] = "Permission problem on TFTP server.", 181 [69] = "Permission problem on TFTP server.",
182 [70] = "Out of disk space on TFTP server.", 182 [70] = "Out of disk space on TFTP server.",
183 [71] = "Illegal TFTP operation.", 183 [71] = "Illegal TFTP operation.",
184 [72] = "Unknown TFTP transfer ID.", 184 [72] = "Unknown TFTP transfer ID.",
185 [73] = "File already exists (TFTP).", 185 [73] = "File already exists (TFTP).",
186 [74] = "No such user (TFTP).", 186 [74] = "No such user (TFTP).",
187 [75] = "Character conversion failed.", 187 [75] = "Character conversion failed.",
188 [76] = "Character conversion functions required.", 188 [76] = "Character conversion functions required.",
189 [77] = "Problem with reading the SSL CA cert (path? access rights?).", 189 [77] = "Problem with reading the SSL CA cert (path? access rights?).",
190 [78] = "The resource referenced in the URL does not exist.", 190 [78] = "The resource referenced in the URL does not exist.",
191 [79] = "An unspecified error occurred during the SSH session.", 191 [79] = "An unspecified error occurred during the SSH session.",
192 [80] = "Failed to shut down the SSL connection.", 192 [80] = "Failed to shut down the SSL connection.",
193 193 [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.",
194 [82] = "Could not load CRL file, missing or wrong format (added in 7.19.0).", 194 [82] = "Could not load CRL file, missing or wrong format (added in 7.19.0).",
195 [83] = "Issuer check failed (added in 7.19.0).", 195 [83] = "Issuer check failed (added in 7.19.0).",
196 [84] = "The FTP PRET command failed", 196 [84] = "The FTP PRET command failed",
197 [85] = "RTSP: mismatch of CSeq numbers", 197 [85] = "RTSP: mismatch of CSeq numbers",
198 [86] = "RTSP: mismatch of Session Identifiers", 198 [86] = "RTSP: mismatch of Session Identifiers",
199 [87] = "unable to parse FTP file list", 199 [87] = "unable to parse FTP file list",
200 [88] = "FTP chunk callback reported error", 200 [88] = "FTP chunk callback reported error",
201 [89] = "No connection available, the session will be queued", 201 [89] = "No connection available, the session will be queued",
202 [90] = "SSL public key does not matched pinned public key", 202 [90] = "SSL public key does not matched pinned public key",
203 [91] = "Status returned failure when asked with CURLOPT_SSL_VERIFYSTATUS.",
204 [92] = "Stream error in the HTTP/2 framing layer.",
205 [93] = "An API function was called from inside a callback.",
206 [94] = "An authentication function returned an error.",
207 [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 buffer for details.",
203} 208}
204 209
205 210