OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file contains the list of network errors. | 5 // This file contains the list of network errors. |
6 | 6 |
7 // | 7 // |
8 // Ranges: | 8 // Ranges: |
9 // 0- 99 System related errors | 9 // 0- 99 System related errors |
10 // 100-199 Connection related errors | 10 // 100-199 Connection related errors |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
184 // 3. The server is presenting a self-signed certificate, providing no | 184 // 3. The server is presenting a self-signed certificate, providing no |
185 // defense against active attackers (but foiling passive attackers). | 185 // defense against active attackers (but foiling passive attackers). |
186 // | 186 // |
187 NET_ERROR(CERT_AUTHORITY_INVALID, -202) | 187 NET_ERROR(CERT_AUTHORITY_INVALID, -202) |
188 | 188 |
189 // The server responded with a certificate that contains errors. | 189 // The server responded with a certificate that contains errors. |
190 // This error is not recoverable. | 190 // This error is not recoverable. |
191 // | 191 // |
192 // MSDN describes this error as follows: | 192 // MSDN describes this error as follows: |
193 // "The SSL certificate contains errors." | 193 // "The SSL certificate contains errors." |
194 // NOTE: It's unclear how this differs from CERT_INVALID. For consistency, | |
wtc
2010/03/01 23:05:40
Nit: CERT_INVALID => ERR_CERT_INVALID
| |
195 // use that code instead of this one from now on. | |
194 // | 196 // |
195 NET_ERROR(CERT_CONTAINS_ERRORS, -203) | 197 NET_ERROR(CERT_CONTAINS_ERRORS, -203) |
196 | 198 |
197 // The certificate has no mechanism for determining if it is revoked. In | 199 // The certificate has no mechanism for determining if it is revoked. In |
198 // effect, this certificate cannot be revoked. | 200 // effect, this certificate cannot be revoked. |
199 NET_ERROR(CERT_NO_REVOCATION_MECHANISM, -204) | 201 NET_ERROR(CERT_NO_REVOCATION_MECHANISM, -204) |
200 | 202 |
201 // Revocation information for the security certificate for this site is not | 203 // Revocation information for the security certificate for this site is not |
202 // available. This could mean: | 204 // available. This could mean: |
203 // | 205 // |
(...skipping 15 matching lines...) Expand all Loading... | |
219 // | 221 // |
220 // MSDN describes this error as follows: | 222 // MSDN describes this error as follows: |
221 // "The SSL certificate is invalid." | 223 // "The SSL certificate is invalid." |
222 // | 224 // |
223 NET_ERROR(CERT_INVALID, -207) | 225 NET_ERROR(CERT_INVALID, -207) |
224 | 226 |
225 // The server responded with a certificate that is signed using a weak | 227 // The server responded with a certificate that is signed using a weak |
226 // signature algorithm. | 228 // signature algorithm. |
227 NET_ERROR(CERT_WEAK_SIGNATURE_ALGORITHM, -208) | 229 NET_ERROR(CERT_WEAK_SIGNATURE_ALGORITHM, -208) |
228 | 230 |
231 // The server responded to a <keygen> with a generated client cert that we | |
232 // don't have the matching private key for. | |
233 NET_ERROR(CERT_NO_PRIVATE_KEY, -209) | |
wtc
2010/03/01 23:05:40
This is not a certificate error (the certificate i
| |
234 | |
229 // Add new certificate error codes here. | 235 // Add new certificate error codes here. |
230 // | 236 // |
231 // Update the value of CERT_END whenever you add a new certificate error | 237 // Update the value of CERT_END whenever you add a new certificate error |
232 // code. | 238 // code. |
233 | 239 |
234 // The value immediately past the last certificate error code. | 240 // The value immediately past the last certificate error code. |
235 NET_ERROR(CERT_END, -209) | 241 NET_ERROR(CERT_END, -210) |
236 | 242 |
237 // The URL is invalid. | 243 // The URL is invalid. |
238 NET_ERROR(INVALID_URL, -300) | 244 NET_ERROR(INVALID_URL, -300) |
239 | 245 |
240 // The scheme of the URL is disallowed. | 246 // The scheme of the URL is disallowed. |
241 NET_ERROR(DISALLOWED_URL_SCHEME, -301) | 247 NET_ERROR(DISALLOWED_URL_SCHEME, -301) |
242 | 248 |
243 // The scheme of the URL is unknown. | 249 // The scheme of the URL is unknown. |
244 NET_ERROR(UNKNOWN_URL_SCHEME, -302) | 250 NET_ERROR(UNKNOWN_URL_SCHEME, -302) |
245 | 251 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
341 // internal error returned from the HttpCache to the HttpCacheTransaction that | 347 // internal error returned from the HttpCache to the HttpCacheTransaction that |
342 // tells the transaction to restart the entry-creation logic because the state | 348 // tells the transaction to restart the entry-creation logic because the state |
343 // of the cache has changed. | 349 // of the cache has changed. |
344 NET_ERROR(CACHE_RACE, -406) | 350 NET_ERROR(CACHE_RACE, -406) |
345 | 351 |
346 // The server's response was insecure (e.g. there was a cert error). | 352 // The server's response was insecure (e.g. there was a cert error). |
347 NET_ERROR(INSECURE_RESPONSE, -501) | 353 NET_ERROR(INSECURE_RESPONSE, -501) |
348 // | 354 // |
349 // The FTP PASV command failed. | 355 // The FTP PASV command failed. |
350 NET_ERROR(FTP_PASV_COMMAND_FAILED, -600) | 356 NET_ERROR(FTP_PASV_COMMAND_FAILED, -600) |
OLD | NEW |