| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // aborted. | 132 // aborted. |
| 133 NET_ERROR(HOST_RESOLVER_QUEUE_TOO_LARGE, -119) | 133 NET_ERROR(HOST_RESOLVER_QUEUE_TOO_LARGE, -119) |
| 134 | 134 |
| 135 // Failed establishing a connection to the SOCKS proxy server for a target host. | 135 // Failed establishing a connection to the SOCKS proxy server for a target host. |
| 136 NET_ERROR(SOCKS_CONNECTION_FAILED, -120) | 136 NET_ERROR(SOCKS_CONNECTION_FAILED, -120) |
| 137 | 137 |
| 138 // The SOCKS proxy server failed establishing connection to the target host | 138 // The SOCKS proxy server failed establishing connection to the target host |
| 139 // because that host is unreachable. | 139 // because that host is unreachable. |
| 140 NET_ERROR(SOCKS_CONNECTION_HOST_UNREACHABLE, -121) | 140 NET_ERROR(SOCKS_CONNECTION_HOST_UNREACHABLE, -121) |
| 141 | 141 |
| 142 // Error number -122 is available for use. | 142 // The request to negotiate an alternate protocol failed. |
| 143 NET_ERROR(NPN_NEGOTIATION_FAILED, -122) |
| 143 | 144 |
| 144 // The peer sent an SSL no_renegotiation alert message. | 145 // The peer sent an SSL no_renegotiation alert message. |
| 145 NET_ERROR(SSL_NO_RENEGOTIATION, -123) | 146 NET_ERROR(SSL_NO_RENEGOTIATION, -123) |
| 146 | 147 |
| 147 // Winsock sometimes reports more data written than passed. This is probably | 148 // Winsock sometimes reports more data written than passed. This is probably |
| 148 // due to a broken LSP. | 149 // due to a broken LSP. |
| 149 NET_ERROR(WINSOCK_UNEXPECTED_WRITTEN_BYTES, -124) | 150 NET_ERROR(WINSOCK_UNEXPECTED_WRITTEN_BYTES, -124) |
| 150 | 151 |
| 151 // An SSL peer sent us a fatal decompression_failure alert. This typically | 152 // An SSL peer sent us a fatal decompression_failure alert. This typically |
| 152 // occurs when a peer selects DEFLATE compression in the mismaken belief that | 153 // occurs when a peer selects DEFLATE compression in the mismaken belief that |
| 153 // it supports it. | 154 // it supports it. |
| 154 NET_ERROR(SSL_DECOMPRESSION_FAILURE_ALERT, -125) | 155 NET_ERROR(SSL_DECOMPRESSION_FAILURE_ALERT, -125) |
| 155 | 156 |
| 156 // An SSL peer sent us a fatal bad_record_mac alert. This has been observed | 157 // An SSL peer sent us a fatal bad_record_mac alert. This has been observed |
| 157 // from servers with buggy DEFLATE support. | 158 // from servers with buggy DEFLATE support. |
| 158 NET_ERROR(SSL_BAD_RECORD_MAC_ALERT, -126) | 159 NET_ERROR(SSL_BAD_RECORD_MAC_ALERT, -126) |
| 159 | 160 |
| 160 // The proxy requested authentication (for tunnel establishment). | 161 // The proxy requested authentication (for tunnel establishment). |
| 161 NET_ERROR(PROXY_AUTH_REQUESTED, -127) | 162 NET_ERROR(PROXY_AUTH_REQUESTED, -127) |
| 162 | 163 |
| 163 // A known TLS strict server didn't offer the renegotiation extension. | 164 // A known TLS strict server didn't offer the renegotiation extension. |
| 164 NET_ERROR(SSL_UNSAFE_NEGOTIATION, -128) | 165 NET_ERROR(SSL_UNSAFE_NEGOTIATION, -128) |
| 165 | 166 |
| 166 // The socket needs a fresh connection in order to proceed. | 167 // The socket is reporting that we tried to provide new credentials after a |
| 168 // a failed attempt on a connection without keep alive. We need to |
| 169 // reestablish the transport socket in order to retry the authentication. |
| 167 NET_ERROR(RETRY_CONNECTION, -129) | 170 NET_ERROR(RETRY_CONNECTION, -129) |
| 168 | 171 |
| 169 // Certificate error codes | 172 // Certificate error codes |
| 170 // | 173 // |
| 171 // The values of certificate error codes must be consecutive. | 174 // The values of certificate error codes must be consecutive. |
| 172 | 175 |
| 173 // The server responded with a certificate whose common name did not match | 176 // The server responded with a certificate whose common name did not match |
| 174 // the host name. This could mean: | 177 // the host name. This could mean: |
| 175 // | 178 // |
| 176 // 1. An attacker has redirected our traffic to his server and is | 179 // 1. An attacker has redirected our traffic to his server and is |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 382 |
| 380 // The server responded to a <keygen> with a generated client cert that we | 383 // The server responded to a <keygen> with a generated client cert that we |
| 381 // don't have the matching private key for. | 384 // don't have the matching private key for. |
| 382 NET_ERROR(NO_PRIVATE_KEY_FOR_CERT, -502) | 385 NET_ERROR(NO_PRIVATE_KEY_FOR_CERT, -502) |
| 383 | 386 |
| 384 // An error adding to the OS certificate database (e.g. OS X Keychain). | 387 // An error adding to the OS certificate database (e.g. OS X Keychain). |
| 385 NET_ERROR(ADD_USER_CERT_FAILED, -503) | 388 NET_ERROR(ADD_USER_CERT_FAILED, -503) |
| 386 | 389 |
| 387 // The FTP PASV command failed. | 390 // The FTP PASV command failed. |
| 388 NET_ERROR(FTP_PASV_COMMAND_FAILED, -600) | 391 NET_ERROR(FTP_PASV_COMMAND_FAILED, -600) |
| OLD | NEW |