OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 intentionally does not have header guards, it's included | 5 // This file intentionally does not have header guards, it's included |
6 // inside a macro to generate enum. | 6 // inside a macro to generate enum. |
7 | 7 |
8 // This file contains the list of network errors. | 8 // This file contains the list of network errors. |
9 | 9 |
10 // | 10 // |
11 // Ranges: | 11 // Ranges: |
12 // 0- 99 System related errors | 12 // 0- 99 System related errors |
13 // 100-199 Connection related errors | 13 // 100-199 Connection related errors |
14 // 200-299 Certificate errors | 14 // 200-299 Certificate errors |
15 // 300-399 HTTP errors | 15 // 300-399 HTTP errors |
16 // 400-499 Cache errors | 16 // 400-499 Cache errors |
17 // 500-599 ? | 17 // 500-599 ? |
18 // 600-699 FTP errors | 18 // 600-699 FTP errors |
19 // 700-799 Certificate manager errors | 19 // 700-799 Certificate manager errors |
20 // 800-899 DNS resolver errors | 20 // 800-899 DNS resolver errors |
21 | 21 |
22 // An asynchronous IO operation is not yet complete. This usually does not | 22 // An asynchronous IO operation is not yet complete. This usually does not |
23 // indicate a fatal error. Typically this error will be generated as a | 23 // indicate a fatal error. Typically this error will be generated as a |
24 // notification to wait for some external notification that the IO operation | 24 // notification to wait for some external notification that the IO operation |
25 // finally completed. | 25 // finally completed. |
26 NET_ERROR(IO_PENDING, -1) | 26 NET_ERROR(ERR_IO_PENDING, -1) |
27 | 27 |
28 // A generic failure occurred. | 28 // A generic failure occurred. |
29 NET_ERROR(FAILED, -2) | 29 NET_ERROR(ERR_FAILED, -2) |
30 | 30 |
31 // An operation was aborted (due to user action). | 31 // An operation was aborted (due to user action). |
32 NET_ERROR(ABORTED, -3) | 32 NET_ERROR(ERR_ABORTED, -3) |
33 | 33 |
34 // An argument to the function is incorrect. | 34 // An argument to the function is incorrect. |
35 NET_ERROR(INVALID_ARGUMENT, -4) | 35 NET_ERROR(ERR_INVALID_ARGUMENT, -4) |
36 | 36 |
37 // The handle or file descriptor is invalid. | 37 // The handle or file descriptor is invalid. |
38 NET_ERROR(INVALID_HANDLE, -5) | 38 NET_ERROR(ERR_INVALID_HANDLE, -5) |
39 | 39 |
40 // The file or directory cannot be found. | 40 // The file or directory cannot be found. |
41 NET_ERROR(FILE_NOT_FOUND, -6) | 41 NET_ERROR(ERR_FILE_NOT_FOUND, -6) |
42 | 42 |
43 // An operation timed out. | 43 // An operation timed out. |
44 NET_ERROR(TIMED_OUT, -7) | 44 NET_ERROR(ERR_TIMED_OUT, -7) |
45 | 45 |
46 // The file is too large. | 46 // The file is too large. |
47 NET_ERROR(FILE_TOO_BIG, -8) | 47 NET_ERROR(ERR_FILE_TOO_BIG, -8) |
48 | 48 |
49 // An unexpected error. This may be caused by a programming mistake or an | 49 // An unexpected error. This may be caused by a programming mistake or an |
50 // invalid assumption. | 50 // invalid assumption. |
51 NET_ERROR(UNEXPECTED, -9) | 51 NET_ERROR(ERR_UNEXPECTED, -9) |
52 | 52 |
53 // Permission to access a resource, other than the network, was denied. | 53 // Permission to access a resource, other than the network, was denied. |
54 NET_ERROR(ACCESS_DENIED, -10) | 54 NET_ERROR(ERR_ACCESS_DENIED, -10) |
55 | 55 |
56 // The operation failed because of unimplemented functionality. | 56 // The operation failed because of unimplemented functionality. |
57 NET_ERROR(NOT_IMPLEMENTED, -11) | 57 NET_ERROR(ERR_NOT_IMPLEMENTED, -11) |
58 | 58 |
59 // There were not enough resources to complete the operation. | 59 // There were not enough resources to complete the operation. |
60 NET_ERROR(INSUFFICIENT_RESOURCES, -12) | 60 NET_ERROR(ERR_INSUFFICIENT_RESOURCES, -12) |
61 | 61 |
62 // Memory allocation failed. | 62 // Memory allocation failed. |
63 NET_ERROR(OUT_OF_MEMORY, -13) | 63 NET_ERROR(ERR_OUT_OF_MEMORY, -13) |
64 | 64 |
65 // The file upload failed because the file's modification time was different | 65 // The file upload failed because the file's modification time was different |
66 // from the expectation. | 66 // from the expectation. |
67 NET_ERROR(UPLOAD_FILE_CHANGED, -14) | 67 NET_ERROR(ERR_UPLOAD_FILE_CHANGED, -14) |
68 | 68 |
69 // The socket is not connected. | 69 // The socket is not connected. |
70 NET_ERROR(SOCKET_NOT_CONNECTED, -15) | 70 NET_ERROR(ERR_SOCKET_NOT_CONNECTED, -15) |
71 | 71 |
72 // The file already exists. | 72 // The file already exists. |
73 NET_ERROR(FILE_EXISTS, -16) | 73 NET_ERROR(ERR_FILE_EXISTS, -16) |
74 | 74 |
75 // The path or file name is too long. | 75 // The path or file name is too long. |
76 NET_ERROR(FILE_PATH_TOO_LONG, -17) | 76 NET_ERROR(ERR_FILE_PATH_TOO_LONG, -17) |
77 | 77 |
78 // Not enough room left on the disk. | 78 // Not enough room left on the disk. |
79 NET_ERROR(FILE_NO_SPACE, -18) | 79 NET_ERROR(ERR_FILE_NO_SPACE, -18) |
80 | 80 |
81 // The file has a virus. | 81 // The file has a virus. |
82 NET_ERROR(FILE_VIRUS_INFECTED, -19) | 82 NET_ERROR(ERR_FILE_VIRUS_INFECTED, -19) |
83 | 83 |
84 // The client chose to block the request. | 84 // The client chose to block the request. |
85 NET_ERROR(BLOCKED_BY_CLIENT, -20) | 85 NET_ERROR(ERR_BLOCKED_BY_CLIENT, -20) |
86 | 86 |
87 // A connection was closed (corresponding to a TCP FIN). | 87 // A connection was closed (corresponding to a TCP FIN). |
88 NET_ERROR(CONNECTION_CLOSED, -100) | 88 NET_ERROR(ERR_CONNECTION_CLOSED, -100) |
89 | 89 |
90 // A connection was reset (corresponding to a TCP RST). | 90 // A connection was reset (corresponding to a TCP RST). |
91 NET_ERROR(CONNECTION_RESET, -101) | 91 NET_ERROR(ERR_CONNECTION_RESET, -101) |
92 | 92 |
93 // A connection attempt was refused. | 93 // A connection attempt was refused. |
94 NET_ERROR(CONNECTION_REFUSED, -102) | 94 NET_ERROR(ERR_CONNECTION_REFUSED, -102) |
95 | 95 |
96 // A connection timed out as a result of not receiving an ACK for data sent. | 96 // A connection timed out as a result of not receiving an ACK for data sent. |
97 // This can include a FIN packet that did not get ACK'd. | 97 // This can include a FIN packet that did not get ACK'd. |
98 NET_ERROR(CONNECTION_ABORTED, -103) | 98 NET_ERROR(ERR_CONNECTION_ABORTED, -103) |
99 | 99 |
100 // A connection attempt failed. | 100 // A connection attempt failed. |
101 NET_ERROR(CONNECTION_FAILED, -104) | 101 NET_ERROR(ERR_CONNECTION_FAILED, -104) |
102 | 102 |
103 // The host name could not be resolved. | 103 // The host name could not be resolved. |
104 NET_ERROR(NAME_NOT_RESOLVED, -105) | 104 NET_ERROR(ERR_NAME_NOT_RESOLVED, -105) |
105 | 105 |
106 // The Internet connection has been lost. | 106 // The Internet connection has been lost. |
107 NET_ERROR(INTERNET_DISCONNECTED, -106) | 107 NET_ERROR(ERR_INTERNET_DISCONNECTED, -106) |
108 | 108 |
109 // An SSL protocol error occurred. | 109 // An SSL protocol error occurred. |
110 NET_ERROR(SSL_PROTOCOL_ERROR, -107) | 110 NET_ERROR(ERR_SSL_PROTOCOL_ERROR, -107) |
111 | 111 |
112 // The IP address or port number is invalid (e.g., cannot connect to the IP | 112 // The IP address or port number is invalid (e.g., cannot connect to the IP |
113 // address 0 or the port 0). | 113 // address 0 or the port 0). |
114 NET_ERROR(ADDRESS_INVALID, -108) | 114 NET_ERROR(ERR_ADDRESS_INVALID, -108) |
115 | 115 |
116 // The IP address is unreachable. This usually means that there is no route to | 116 // The IP address is unreachable. This usually means that there is no route to |
117 // the specified host or network. | 117 // the specified host or network. |
118 NET_ERROR(ADDRESS_UNREACHABLE, -109) | 118 NET_ERROR(ERR_ADDRESS_UNREACHABLE, -109) |
119 | 119 |
120 // The server requested a client certificate for SSL client authentication. | 120 // The server requested a client certificate for SSL client authentication. |
121 NET_ERROR(SSL_CLIENT_AUTH_CERT_NEEDED, -110) | 121 NET_ERROR(ERR_SSL_CLIENT_AUTH_CERT_NEEDED, -110) |
122 | 122 |
123 // A tunnel connection through the proxy could not be established. | 123 // A tunnel connection through the proxy could not be established. |
124 NET_ERROR(TUNNEL_CONNECTION_FAILED, -111) | 124 NET_ERROR(ERR_TUNNEL_CONNECTION_FAILED, -111) |
125 | 125 |
126 // No SSL protocol versions are enabled. | 126 // No SSL protocol versions are enabled. |
127 NET_ERROR(NO_SSL_VERSIONS_ENABLED, -112) | 127 NET_ERROR(ERR_NO_SSL_VERSIONS_ENABLED, -112) |
128 | 128 |
129 // The client and server don't support a common SSL protocol version or | 129 // The client and server don't support a common SSL protocol version or |
130 // cipher suite. | 130 // cipher suite. |
131 NET_ERROR(SSL_VERSION_OR_CIPHER_MISMATCH, -113) | 131 NET_ERROR(ERR_SSL_VERSION_OR_CIPHER_MISMATCH, -113) |
132 | 132 |
133 // The server requested a renegotiation (rehandshake). | 133 // The server requested a renegotiation (rehandshake). |
134 NET_ERROR(SSL_RENEGOTIATION_REQUESTED, -114) | 134 NET_ERROR(ERR_SSL_RENEGOTIATION_REQUESTED, -114) |
135 | 135 |
136 // The proxy requested authentication (for tunnel establishment) with an | 136 // The proxy requested authentication (for tunnel establishment) with an |
137 // unsupported method. | 137 // unsupported method. |
138 NET_ERROR(PROXY_AUTH_UNSUPPORTED, -115) | 138 NET_ERROR(ERR_PROXY_AUTH_UNSUPPORTED, -115) |
139 | 139 |
140 // During SSL renegotiation (rehandshake), the server sent a certificate with | 140 // During SSL renegotiation (rehandshake), the server sent a certificate with |
141 // an error. | 141 // an error. |
142 // | 142 // |
143 // Note: this error is not in the -2xx range so that it won't be handled as a | 143 // Note: this error is not in the -2xx range so that it won't be handled as a |
144 // certificate error. | 144 // certificate error. |
145 NET_ERROR(CERT_ERROR_IN_SSL_RENEGOTIATION, -116) | 145 NET_ERROR(ERR_CERT_ERROR_IN_SSL_RENEGOTIATION, -116) |
146 | 146 |
147 // The SSL handshake failed because of a bad or missing client certificate. | 147 // The SSL handshake failed because of a bad or missing client certificate. |
148 NET_ERROR(BAD_SSL_CLIENT_AUTH_CERT, -117) | 148 NET_ERROR(ERR_BAD_SSL_CLIENT_AUTH_CERT, -117) |
149 | 149 |
150 // A connection attempt timed out. | 150 // A connection attempt timed out. |
151 NET_ERROR(CONNECTION_TIMED_OUT, -118) | 151 NET_ERROR(ERR_CONNECTION_TIMED_OUT, -118) |
152 | 152 |
153 // There are too many pending DNS resolves, so a request in the queue was | 153 // There are too many pending DNS resolves, so a request in the queue was |
154 // aborted. | 154 // aborted. |
155 NET_ERROR(HOST_RESOLVER_QUEUE_TOO_LARGE, -119) | 155 NET_ERROR(ERR_HOST_RESOLVER_QUEUE_TOO_LARGE, -119) |
156 | 156 |
157 // Failed establishing a connection to the SOCKS proxy server for a target host. | 157 // Failed establishing a connection to the SOCKS proxy server for a target host. |
158 NET_ERROR(SOCKS_CONNECTION_FAILED, -120) | 158 NET_ERROR(ERR_SOCKS_CONNECTION_FAILED, -120) |
159 | 159 |
160 // The SOCKS proxy server failed establishing connection to the target host | 160 // The SOCKS proxy server failed establishing connection to the target host |
161 // because that host is unreachable. | 161 // because that host is unreachable. |
162 NET_ERROR(SOCKS_CONNECTION_HOST_UNREACHABLE, -121) | 162 NET_ERROR(ERR_SOCKS_CONNECTION_HOST_UNREACHABLE, -121) |
163 | 163 |
164 // The request to negotiate an alternate protocol failed. | 164 // The request to negotiate an alternate protocol failed. |
165 NET_ERROR(NPN_NEGOTIATION_FAILED, -122) | 165 NET_ERROR(ERR_NPN_NEGOTIATION_FAILED, -122) |
166 | 166 |
167 // The peer sent an SSL no_renegotiation alert message. | 167 // The peer sent an SSL no_renegotiation alert message. |
168 NET_ERROR(SSL_NO_RENEGOTIATION, -123) | 168 NET_ERROR(ERR_SSL_NO_RENEGOTIATION, -123) |
169 | 169 |
170 // Winsock sometimes reports more data written than passed. This is probably | 170 // Winsock sometimes reports more data written than passed. This is probably |
171 // due to a broken LSP. | 171 // due to a broken LSP. |
172 NET_ERROR(WINSOCK_UNEXPECTED_WRITTEN_BYTES, -124) | 172 NET_ERROR(ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES, -124) |
173 | 173 |
174 // An SSL peer sent us a fatal decompression_failure alert. This typically | 174 // An SSL peer sent us a fatal decompression_failure alert. This typically |
175 // occurs when a peer selects DEFLATE compression in the mistaken belief that | 175 // occurs when a peer selects DEFLATE compression in the mistaken belief that |
176 // it supports it. | 176 // it supports it. |
177 NET_ERROR(SSL_DECOMPRESSION_FAILURE_ALERT, -125) | 177 NET_ERROR(ERR_SSL_DECOMPRESSION_FAILURE_ALERT, -125) |
178 | 178 |
179 // An SSL peer sent us a fatal bad_record_mac alert. This has been observed | 179 // An SSL peer sent us a fatal bad_record_mac alert. This has been observed |
180 // from servers with buggy DEFLATE support. | 180 // from servers with buggy DEFLATE support. |
181 NET_ERROR(SSL_BAD_RECORD_MAC_ALERT, -126) | 181 NET_ERROR(ERR_SSL_BAD_RECORD_MAC_ALERT, -126) |
182 | 182 |
183 // The proxy requested authentication (for tunnel establishment). | 183 // The proxy requested authentication (for tunnel establishment). |
184 NET_ERROR(PROXY_AUTH_REQUESTED, -127) | 184 NET_ERROR(ERR_PROXY_AUTH_REQUESTED, -127) |
185 | 185 |
186 // A known TLS strict server didn't offer the renegotiation extension. | 186 // A known TLS strict server didn't offer the renegotiation extension. |
187 NET_ERROR(SSL_UNSAFE_NEGOTIATION, -128) | 187 NET_ERROR(ERR_SSL_UNSAFE_NEGOTIATION, -128) |
188 | 188 |
189 // The SSL server attempted to use a weak ephemeral Diffie-Hellman key. | 189 // The SSL server attempted to use a weak ephemeral Diffie-Hellman key. |
190 NET_ERROR(SSL_WEAK_SERVER_EPHEMERAL_DH_KEY, -129) | 190 NET_ERROR(ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY, -129) |
191 | 191 |
192 // Could not create a connection to the proxy server. An error occurred | 192 // Could not create a connection to the proxy server. An error occurred |
193 // either in resolving its name, or in connecting a socket to it. | 193 // either in resolving its name, or in connecting a socket to it. |
194 // Note that this does NOT include failures during the actual "CONNECT" method | 194 // Note that this does NOT include failures during the actual "CONNECT" method |
195 // of an HTTP proxy. | 195 // of an HTTP proxy. |
196 NET_ERROR(PROXY_CONNECTION_FAILED, -130) | 196 NET_ERROR(ERR_PROXY_CONNECTION_FAILED, -130) |
197 | 197 |
198 // A mandatory proxy configuration could not be used. Currently this means | 198 // A mandatory proxy configuration could not be used. Currently this means |
199 // that a mandatory PAC script could not be fetched, parsed or executed. | 199 // that a mandatory PAC script could not be fetched, parsed or executed. |
200 NET_ERROR(MANDATORY_PROXY_CONFIGURATION_FAILED, -131) | 200 NET_ERROR(ERR_MANDATORY_PROXY_CONFIGURATION_FAILED, -131) |
201 | 201 |
202 // -132 was formerly ERR_ESET_ANTI_VIRUS_SSL_INTERCEPTION | 202 // -132 was formerly ERR_ESET_ANTI_VIRUS_SSL_INTERCEPTION |
203 | 203 |
204 // We've hit the max socket limit for the socket pool while preconnecting. We | 204 // We've hit the max socket limit for the socket pool while preconnecting. We |
205 // don't bother trying to preconnect more sockets. | 205 // don't bother trying to preconnect more sockets. |
206 NET_ERROR(PRECONNECT_MAX_SOCKET_LIMIT, -133) | 206 NET_ERROR(ERR_PRECONNECT_MAX_SOCKET_LIMIT, -133) |
207 | 207 |
208 // The permission to use the SSL client certificate's private key was denied. | 208 // The permission to use the SSL client certificate's private key was denied. |
209 NET_ERROR(SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED, -134) | 209 NET_ERROR(ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED, -134) |
210 | 210 |
211 // The SSL client certificate has no private key. | 211 // The SSL client certificate has no private key. |
212 NET_ERROR(SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY, -135) | 212 NET_ERROR(ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY, -135) |
213 | 213 |
214 // The certificate presented by the HTTPS Proxy was invalid. | 214 // The certificate presented by the HTTPS Proxy was invalid. |
215 NET_ERROR(PROXY_CERTIFICATE_INVALID, -136) | 215 NET_ERROR(ERR_PROXY_CERTIFICATE_INVALID, -136) |
216 | 216 |
217 // An error occurred when trying to do a name resolution (DNS). | 217 // An error occurred when trying to do a name resolution (DNS). |
218 NET_ERROR(NAME_RESOLUTION_FAILED, -137) | 218 NET_ERROR(ERR_NAME_RESOLUTION_FAILED, -137) |
219 | 219 |
220 // Permission to access the network was denied. This is used to distinguish | 220 // Permission to access the network was denied. This is used to distinguish |
221 // errors that were most likely caused by a firewall from other access denied | 221 // errors that were most likely caused by a firewall from other access denied |
222 // errors. See also ERR_ACCESS_DENIED. | 222 // errors. See also ERR_ACCESS_DENIED. |
223 NET_ERROR(NETWORK_ACCESS_DENIED, -138) | 223 NET_ERROR(ERR_NETWORK_ACCESS_DENIED, -138) |
224 | 224 |
225 // The request throttler module cancelled this request to avoid DDOS. | 225 // The request throttler module cancelled this request to avoid DDOS. |
226 NET_ERROR(TEMPORARILY_THROTTLED, -139) | 226 NET_ERROR(ERR_TEMPORARILY_THROTTLED, -139) |
227 | 227 |
228 // A request to create an SSL tunnel connection through the HTTPS proxy | 228 // A request to create an SSL tunnel connection through the HTTPS proxy |
229 // received a non-200 (OK) and non-407 (Proxy Auth) response. The response | 229 // received a non-200 (OK) and non-407 (Proxy Auth) response. The response |
230 // body might include a description of why the request failed. | 230 // body might include a description of why the request failed. |
231 NET_ERROR(HTTPS_PROXY_TUNNEL_RESPONSE, -140) | 231 NET_ERROR(ERR_HTTPS_PROXY_TUNNEL_RESPONSE, -140) |
232 | 232 |
233 // We were unable to sign the CertificateVerify data of an SSL client auth | 233 // We were unable to sign the CertificateVerify data of an SSL client auth |
234 // handshake with the client certificate's private key. | 234 // handshake with the client certificate's private key. |
235 // | 235 // |
236 // Possible causes for this include the user implicitly or explicitly | 236 // Possible causes for this include the user implicitly or explicitly |
237 // denying access to the private key, the private key may not be valid for | 237 // denying access to the private key, the private key may not be valid for |
238 // signing, the key may be relying on a cached handle which is no longer | 238 // signing, the key may be relying on a cached handle which is no longer |
239 // valid, or the CSP won't allow arbitrary data to be signed. | 239 // valid, or the CSP won't allow arbitrary data to be signed. |
240 NET_ERROR(SSL_CLIENT_AUTH_SIGNATURE_FAILED, -141) | 240 NET_ERROR(ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED, -141) |
241 | 241 |
242 // The message was too large for the transport. (for example a UDP message | 242 // The message was too large for the transport. (for example a UDP message |
243 // which exceeds size threshold). | 243 // which exceeds size threshold). |
244 NET_ERROR(MSG_TOO_BIG, -142) | 244 NET_ERROR(ERR_MSG_TOO_BIG, -142) |
245 | 245 |
246 // A SPDY session already exists, and should be used instead of this connection. | 246 // A SPDY session already exists, and should be used instead of this connection. |
247 NET_ERROR(SPDY_SESSION_ALREADY_EXISTS, -143) | 247 NET_ERROR(ERR_SPDY_SESSION_ALREADY_EXISTS, -143) |
248 | 248 |
249 // Violation of limits (e.g. imposed to prevent DoS). | 249 // Violation of limits (e.g. imposed to prevent DoS). |
250 NET_ERROR(LIMIT_VIOLATION, -144) | 250 NET_ERROR(ERR_LIMIT_VIOLATION, -144) |
251 | 251 |
252 // WebSocket protocol error occurred. | 252 // WebSocket protocol error occurred. |
253 NET_ERROR(WS_PROTOCOL_ERROR, -145) | 253 NET_ERROR(ERR_WS_PROTOCOL_ERROR, -145) |
254 | 254 |
255 // Connection was aborted for switching to another ptotocol. | 255 // Connection was aborted for switching to another ptotocol. |
256 // WebSocket abort SocketStream connection when alternate protocol is found. | 256 // WebSocket abort SocketStream connection when alternate protocol is found. |
257 NET_ERROR(PROTOCOL_SWITCHED, -146) | 257 NET_ERROR(ERR_PROTOCOL_SWITCHED, -146) |
258 | 258 |
259 // Returned when attempting to bind an address that is already in use. | 259 // Returned when attempting to bind an address that is already in use. |
260 NET_ERROR(ADDRESS_IN_USE, -147) | 260 NET_ERROR(ERR_ADDRESS_IN_USE, -147) |
261 | 261 |
262 // An operation failed because the SSL handshake has not completed. | 262 // An operation failed because the SSL handshake has not completed. |
263 NET_ERROR(SSL_HANDSHAKE_NOT_COMPLETED, -148) | 263 NET_ERROR(ERR_SSL_HANDSHAKE_NOT_COMPLETED, -148) |
264 | 264 |
265 // SSL peer's public key is invalid. | 265 // SSL peer's public key is invalid. |
266 NET_ERROR(SSL_BAD_PEER_PUBLIC_KEY, -149) | 266 NET_ERROR(ERR_SSL_BAD_PEER_PUBLIC_KEY, -149) |
267 | 267 |
268 // The certificate didn't match the built-in public key pins for the host name. | 268 // The certificate didn't match the built-in public key pins for the host name. |
269 // The pins are set in net/base/transport_security_state.cc and require that | 269 // The pins are set in net/base/transport_security_state.cc and require that |
270 // one of a set of public keys exist on the path from the leaf to the root. | 270 // one of a set of public keys exist on the path from the leaf to the root. |
271 NET_ERROR(SSL_PINNED_KEY_NOT_IN_CERT_CHAIN, -150) | 271 NET_ERROR(ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN, -150) |
272 | 272 |
273 // Server request for client certificate did not contain any types we support. | 273 // Server request for client certificate did not contain any types we support. |
274 NET_ERROR(CLIENT_AUTH_CERT_TYPE_UNSUPPORTED, -151) | 274 NET_ERROR(ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED, -151) |
275 | 275 |
276 // Server requested one type of cert, then requested a different type while the | 276 // Server requested one type of cert, then requested a different type while the |
277 // first was still being generated. | 277 // first was still being generated. |
278 NET_ERROR(ORIGIN_BOUND_CERT_GENERATION_TYPE_MISMATCH, -152) | 278 NET_ERROR(ERR_ORIGIN_BOUND_CERT_GENERATION_TYPE_MISMATCH, -152) |
279 | 279 |
280 // Certificate error codes | 280 // Certificate error codes |
281 // | 281 // |
282 // The values of certificate error codes must be consecutive. | 282 // The values of certificate error codes must be consecutive. |
283 | 283 |
284 // The server responded with a certificate whose common name did not match | 284 // The server responded with a certificate whose common name did not match |
285 // the host name. This could mean: | 285 // the host name. This could mean: |
286 // | 286 // |
287 // 1. An attacker has redirected our traffic to his server and is | 287 // 1. An attacker has redirected our traffic to his server and is |
288 // presenting a certificate for which he knows the private key. | 288 // presenting a certificate for which he knows the private key. |
289 // | 289 // |
290 // 2. The server is misconfigured and responding with the wrong cert. | 290 // 2. The server is misconfigured and responding with the wrong cert. |
291 // | 291 // |
292 // 3. The user is on a wireless network and is being redirected to the | 292 // 3. The user is on a wireless network and is being redirected to the |
293 // network's login page. | 293 // network's login page. |
294 // | 294 // |
295 // 4. The OS has used a DNS search suffix and the server doesn't have | 295 // 4. The OS has used a DNS search suffix and the server doesn't have |
296 // a certificate for the abbreviated name in the address bar. | 296 // a certificate for the abbreviated name in the address bar. |
297 // | 297 // |
298 NET_ERROR(CERT_COMMON_NAME_INVALID, -200) | 298 NET_ERROR(ERR_CERT_COMMON_NAME_INVALID, -200) |
299 | 299 |
300 // The server responded with a certificate that, by our clock, appears to | 300 // The server responded with a certificate that, by our clock, appears to |
301 // either not yet be valid or to have expired. This could mean: | 301 // either not yet be valid or to have expired. This could mean: |
302 // | 302 // |
303 // 1. An attacker is presenting an old certificate for which he has | 303 // 1. An attacker is presenting an old certificate for which he has |
304 // managed to obtain the private key. | 304 // managed to obtain the private key. |
305 // | 305 // |
306 // 2. The server is misconfigured and is not presenting a valid cert. | 306 // 2. The server is misconfigured and is not presenting a valid cert. |
307 // | 307 // |
308 // 3. Our clock is wrong. | 308 // 3. Our clock is wrong. |
309 // | 309 // |
310 NET_ERROR(CERT_DATE_INVALID, -201) | 310 NET_ERROR(ERR_CERT_DATE_INVALID, -201) |
311 | 311 |
312 // The server responded with a certificate that is signed by an authority | 312 // The server responded with a certificate that is signed by an authority |
313 // we don't trust. The could mean: | 313 // we don't trust. The could mean: |
314 // | 314 // |
315 // 1. An attacker has substituted the real certificate for a cert that | 315 // 1. An attacker has substituted the real certificate for a cert that |
316 // contains his public key and is signed by his cousin. | 316 // contains his public key and is signed by his cousin. |
317 // | 317 // |
318 // 2. The server operator has a legitimate certificate from a CA we don't | 318 // 2. The server operator has a legitimate certificate from a CA we don't |
319 // know about, but should trust. | 319 // know about, but should trust. |
320 // | 320 // |
321 // 3. The server is presenting a self-signed certificate, providing no | 321 // 3. The server is presenting a self-signed certificate, providing no |
322 // defense against active attackers (but foiling passive attackers). | 322 // defense against active attackers (but foiling passive attackers). |
323 // | 323 // |
324 NET_ERROR(CERT_AUTHORITY_INVALID, -202) | 324 NET_ERROR(ERR_CERT_AUTHORITY_INVALID, -202) |
325 | 325 |
326 // The server responded with a certificate that contains errors. | 326 // The server responded with a certificate that contains errors. |
327 // This error is not recoverable. | 327 // This error is not recoverable. |
328 // | 328 // |
329 // MSDN describes this error as follows: | 329 // MSDN describes this error as follows: |
330 // "The SSL certificate contains errors." | 330 // "The SSL certificate contains errors." |
331 // NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency, | 331 // NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency, |
332 // use that code instead of this one from now on. | 332 // use that code instead of this one from now on. |
333 // | 333 // |
334 NET_ERROR(CERT_CONTAINS_ERRORS, -203) | 334 NET_ERROR(ERR_CERT_CONTAINS_ERRORS, -203) |
335 | 335 |
336 // The certificate has no mechanism for determining if it is revoked. In | 336 // The certificate has no mechanism for determining if it is revoked. In |
337 // effect, this certificate cannot be revoked. | 337 // effect, this certificate cannot be revoked. |
338 NET_ERROR(CERT_NO_REVOCATION_MECHANISM, -204) | 338 NET_ERROR(ERR_CERT_NO_REVOCATION_MECHANISM, -204) |
339 | 339 |
340 // Revocation information for the security certificate for this site is not | 340 // Revocation information for the security certificate for this site is not |
341 // available. This could mean: | 341 // available. This could mean: |
342 // | 342 // |
343 // 1. An attacker has compromised the private key in the certificate and is | 343 // 1. An attacker has compromised the private key in the certificate and is |
344 // blocking our attempt to find out that the cert was revoked. | 344 // blocking our attempt to find out that the cert was revoked. |
345 // | 345 // |
346 // 2. The certificate is unrevoked, but the revocation server is busy or | 346 // 2. The certificate is unrevoked, but the revocation server is busy or |
347 // unavailable. | 347 // unavailable. |
348 // | 348 // |
349 NET_ERROR(CERT_UNABLE_TO_CHECK_REVOCATION, -205) | 349 NET_ERROR(ERR_CERT_UNABLE_TO_CHECK_REVOCATION, -205) |
350 | 350 |
351 // The server responded with a certificate has been revoked. | 351 // The server responded with a certificate has been revoked. |
352 // We have the capability to ignore this error, but it is probably not the | 352 // We have the capability to ignore this error, but it is probably not the |
353 // thing to do. | 353 // thing to do. |
354 NET_ERROR(CERT_REVOKED, -206) | 354 NET_ERROR(ERR_CERT_REVOKED, -206) |
355 | 355 |
356 // The server responded with a certificate that is invalid. | 356 // The server responded with a certificate that is invalid. |
357 // This error is not recoverable. | 357 // This error is not recoverable. |
358 // | 358 // |
359 // MSDN describes this error as follows: | 359 // MSDN describes this error as follows: |
360 // "The SSL certificate is invalid." | 360 // "The SSL certificate is invalid." |
361 // | 361 // |
362 NET_ERROR(CERT_INVALID, -207) | 362 NET_ERROR(ERR_CERT_INVALID, -207) |
363 | 363 |
364 // The server responded with a certificate that is signed using a weak | 364 // The server responded with a certificate that is signed using a weak |
365 // signature algorithm. | 365 // signature algorithm. |
366 NET_ERROR(CERT_WEAK_SIGNATURE_ALGORITHM, -208) | 366 NET_ERROR(ERR_CERT_WEAK_SIGNATURE_ALGORITHM, -208) |
367 | 367 |
368 // -209 is availible: was CERT_NOT_IN_DNS. | 368 // -209 is availible: was CERT_NOT_IN_DNS. |
369 | 369 |
370 // The host name specified in the certificate is not unique. | 370 // The host name specified in the certificate is not unique. |
371 NET_ERROR(CERT_NON_UNIQUE_NAME, -210) | 371 NET_ERROR(ERR_CERT_NON_UNIQUE_NAME, -210) |
372 | 372 |
373 // The server responded with a certificate that contains a weak key (e.g. | 373 // The server responded with a certificate that contains a weak key (e.g. |
374 // a too-small RSA key). | 374 // a too-small RSA key). |
375 NET_ERROR(CERT_WEAK_KEY, -211) | 375 NET_ERROR(ERR_CERT_WEAK_KEY, -211) |
376 | 376 |
377 // Add new certificate error codes here. | 377 // Add new certificate error codes here. |
378 // | 378 // |
379 // Update the value of CERT_END whenever you add a new certificate error | 379 // Update the value of CERT_END whenever you add a new certificate error |
380 // code. | 380 // code. |
381 | 381 |
382 // The value immediately past the last certificate error code. | 382 // The value immediately past the last certificate error code. |
383 NET_ERROR(CERT_END, -212) | 383 NET_ERROR(ERR_CERT_END, -212) |
384 | 384 |
385 // The URL is invalid. | 385 // The URL is invalid. |
386 NET_ERROR(INVALID_URL, -300) | 386 NET_ERROR(ERR_INVALID_URL, -300) |
387 | 387 |
388 // The scheme of the URL is disallowed. | 388 // The scheme of the URL is disallowed. |
389 NET_ERROR(DISALLOWED_URL_SCHEME, -301) | 389 NET_ERROR(ERR_DISALLOWED_URL_SCHEME, -301) |
390 | 390 |
391 // The scheme of the URL is unknown. | 391 // The scheme of the URL is unknown. |
392 NET_ERROR(UNKNOWN_URL_SCHEME, -302) | 392 NET_ERROR(ERR_UNKNOWN_URL_SCHEME, -302) |
393 | 393 |
394 // Attempting to load an URL resulted in too many redirects. | 394 // Attempting to load an URL resulted in too many redirects. |
395 NET_ERROR(TOO_MANY_REDIRECTS, -310) | 395 NET_ERROR(ERR_TOO_MANY_REDIRECTS, -310) |
396 | 396 |
397 // Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect | 397 // Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect |
398 // to file:// is considered unsafe). | 398 // to file:// is considered unsafe). |
399 NET_ERROR(UNSAFE_REDIRECT, -311) | 399 NET_ERROR(ERR_UNSAFE_REDIRECT, -311) |
400 | 400 |
401 // Attempting to load an URL with an unsafe port number. These are port | 401 // Attempting to load an URL with an unsafe port number. These are port |
402 // numbers that correspond to services, which are not robust to spurious input | 402 // numbers that correspond to services, which are not robust to spurious input |
403 // that may be constructed as a result of an allowed web construct (e.g., HTTP | 403 // that may be constructed as a result of an allowed web construct (e.g., HTTP |
404 // looks a lot like SMTP, so form submission to port 25 is denied). | 404 // looks a lot like SMTP, so form submission to port 25 is denied). |
405 NET_ERROR(UNSAFE_PORT, -312) | 405 NET_ERROR(ERR_UNSAFE_PORT, -312) |
406 | 406 |
407 // The server's response was invalid. | 407 // The server's response was invalid. |
408 NET_ERROR(INVALID_RESPONSE, -320) | 408 NET_ERROR(ERR_INVALID_RESPONSE, -320) |
409 | 409 |
410 // Error in chunked transfer encoding. | 410 // Error in chunked transfer encoding. |
411 NET_ERROR(INVALID_CHUNKED_ENCODING, -321) | 411 NET_ERROR(ERR_INVALID_CHUNKED_ENCODING, -321) |
412 | 412 |
413 // The server did not support the request method. | 413 // The server did not support the request method. |
414 NET_ERROR(METHOD_NOT_SUPPORTED, -322) | 414 NET_ERROR(ERR_METHOD_NOT_SUPPORTED, -322) |
415 | 415 |
416 // The response was 407 (Proxy Authentication Required), yet we did not send | 416 // The response was 407 (Proxy Authentication Required), yet we did not send |
417 // the request to a proxy. | 417 // the request to a proxy. |
418 NET_ERROR(UNEXPECTED_PROXY_AUTH, -323) | 418 NET_ERROR(ERR_UNEXPECTED_PROXY_AUTH, -323) |
419 | 419 |
420 // The server closed the connection without sending any data. | 420 // The server closed the connection without sending any data. |
421 NET_ERROR(EMPTY_RESPONSE, -324) | 421 NET_ERROR(ERR_EMPTY_RESPONSE, -324) |
422 | 422 |
423 // The headers section of the response is too large. | 423 // The headers section of the response is too large. |
424 NET_ERROR(RESPONSE_HEADERS_TOO_BIG, -325) | 424 NET_ERROR(ERR_RESPONSE_HEADERS_TOO_BIG, -325) |
425 | 425 |
426 // The PAC requested by HTTP did not have a valid status code (non-200). | 426 // The PAC requested by HTTP did not have a valid status code (non-200). |
427 NET_ERROR(PAC_STATUS_NOT_OK, -326) | 427 NET_ERROR(ERR_PAC_STATUS_NOT_OK, -326) |
428 | 428 |
429 // The evaluation of the PAC script failed. | 429 // The evaluation of the PAC script failed. |
430 NET_ERROR(PAC_SCRIPT_FAILED, -327) | 430 NET_ERROR(ERR_PAC_SCRIPT_FAILED, -327) |
431 | 431 |
432 // The response was 416 (Requested range not satisfiable) and the server cannot | 432 // The response was 416 (Requested range not satisfiable) and the server cannot |
433 // satisfy the range requested. | 433 // satisfy the range requested. |
434 NET_ERROR(REQUEST_RANGE_NOT_SATISFIABLE, -328) | 434 NET_ERROR(ERR_REQUEST_RANGE_NOT_SATISFIABLE, -328) |
435 | 435 |
436 // The identity used for authentication is invalid. | 436 // The identity used for authentication is invalid. |
437 NET_ERROR(MALFORMED_IDENTITY, -329) | 437 NET_ERROR(ERR_MALFORMED_IDENTITY, -329) |
438 | 438 |
439 // Content decoding of the response body failed. | 439 // Content decoding of the response body failed. |
440 NET_ERROR(CONTENT_DECODING_FAILED, -330) | 440 NET_ERROR(ERR_CONTENT_DECODING_FAILED, -330) |
441 | 441 |
442 // An operation could not be completed because all network IO | 442 // An operation could not be completed because all network IO |
443 // is suspended. | 443 // is suspended. |
444 NET_ERROR(NETWORK_IO_SUSPENDED, -331) | 444 NET_ERROR(ERR_NETWORK_IO_SUSPENDED, -331) |
445 | 445 |
446 // FLIP data received without receiving a SYN_REPLY on the stream. | 446 // FLIP data received without receiving a SYN_REPLY on the stream. |
447 NET_ERROR(SYN_REPLY_NOT_RECEIVED, -332) | 447 NET_ERROR(ERR_SYN_REPLY_NOT_RECEIVED, -332) |
448 | 448 |
449 // Converting the response to target encoding failed. | 449 // Converting the response to target encoding failed. |
450 NET_ERROR(ENCODING_CONVERSION_FAILED, -333) | 450 NET_ERROR(ERR_ENCODING_CONVERSION_FAILED, -333) |
451 | 451 |
452 // The server sent an FTP directory listing in a format we do not understand. | 452 // The server sent an FTP directory listing in a format we do not understand. |
453 NET_ERROR(UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT, -334) | 453 NET_ERROR(ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT, -334) |
454 | 454 |
455 // Attempted use of an unknown SPDY stream id. | 455 // Attempted use of an unknown SPDY stream id. |
456 NET_ERROR(INVALID_SPDY_STREAM, -335) | 456 NET_ERROR(ERR_INVALID_SPDY_STREAM, -335) |
457 | 457 |
458 // There are no supported proxies in the provided list. | 458 // There are no supported proxies in the provided list. |
459 NET_ERROR(NO_SUPPORTED_PROXIES, -336) | 459 NET_ERROR(ERR_NO_SUPPORTED_PROXIES, -336) |
460 | 460 |
461 // There is a SPDY protocol framing error. | 461 // There is a SPDY protocol framing error. |
462 NET_ERROR(SPDY_PROTOCOL_ERROR, -337) | 462 NET_ERROR(ERR_SPDY_PROTOCOL_ERROR, -337) |
463 | 463 |
464 // Credentials could not be established during HTTP Authentication. | 464 // Credentials could not be established during HTTP Authentication. |
465 NET_ERROR(INVALID_AUTH_CREDENTIALS, -338) | 465 NET_ERROR(ERR_INVALID_AUTH_CREDENTIALS, -338) |
466 | 466 |
467 // An HTTP Authentication scheme was tried which is not supported on this | 467 // An HTTP Authentication scheme was tried which is not supported on this |
468 // machine. | 468 // machine. |
469 NET_ERROR(UNSUPPORTED_AUTH_SCHEME, -339) | 469 NET_ERROR(ERR_UNSUPPORTED_AUTH_SCHEME, -339) |
470 | 470 |
471 // Detecting the encoding of the response failed. | 471 // Detecting the encoding of the response failed. |
472 NET_ERROR(ENCODING_DETECTION_FAILED, -340) | 472 NET_ERROR(ERR_ENCODING_DETECTION_FAILED, -340) |
473 | 473 |
474 // (GSSAPI) No Kerberos credentials were available during HTTP Authentication. | 474 // (GSSAPI) No Kerberos credentials were available during HTTP Authentication. |
475 NET_ERROR(MISSING_AUTH_CREDENTIALS, -341) | 475 NET_ERROR(ERR_MISSING_AUTH_CREDENTIALS, -341) |
476 | 476 |
477 // An unexpected, but documented, SSPI or GSSAPI status code was returned. | 477 // An unexpected, but documented, SSPI or GSSAPI status code was returned. |
478 NET_ERROR(UNEXPECTED_SECURITY_LIBRARY_STATUS, -342) | 478 NET_ERROR(ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS, -342) |
479 | 479 |
480 // The environment was not set up correctly for authentication (for | 480 // The environment was not set up correctly for authentication (for |
481 // example, no KDC could be found or the principal is unknown. | 481 // example, no KDC could be found or the principal is unknown. |
482 NET_ERROR(MISCONFIGURED_AUTH_ENVIRONMENT, -343) | 482 NET_ERROR(ERR_MISCONFIGURED_AUTH_ENVIRONMENT, -343) |
483 | 483 |
484 // An undocumented SSPI or GSSAPI status code was returned. | 484 // An undocumented SSPI or GSSAPI status code was returned. |
485 NET_ERROR(UNDOCUMENTED_SECURITY_LIBRARY_STATUS, -344) | 485 NET_ERROR(ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS, -344) |
486 | 486 |
487 // The HTTP response was too big to drain. | 487 // The HTTP response was too big to drain. |
488 NET_ERROR(RESPONSE_BODY_TOO_BIG_TO_DRAIN, -345) | 488 NET_ERROR(ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN, -345) |
489 | 489 |
490 // The HTTP response contained multiple distinct Content-Length headers. | 490 // The HTTP response contained multiple distinct Content-Length headers. |
491 NET_ERROR(RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH, -346) | 491 NET_ERROR(ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH, -346) |
492 | 492 |
493 // SPDY Headers have been received, but not all of them - status or version | 493 // SPDY Headers have been received, but not all of them - status or version |
494 // headers are missing, so we're expecting additional frames to complete them. | 494 // headers are missing, so we're expecting additional frames to complete them. |
495 NET_ERROR(INCOMPLETE_SPDY_HEADERS, -347) | 495 NET_ERROR(ERR_INCOMPLETE_SPDY_HEADERS, -347) |
496 | 496 |
497 // No PAC URL configuration could be retrieved from DHCP. This can indicate | 497 // No PAC URL configuration could be retrieved from DHCP. This can indicate |
498 // either a failure to retrieve the DHCP configuration, or that there was no | 498 // either a failure to retrieve the DHCP configuration, or that there was no |
499 // PAC URL configured in DHCP. | 499 // PAC URL configured in DHCP. |
500 NET_ERROR(PAC_NOT_IN_DHCP, -348) | 500 NET_ERROR(ERR_PAC_NOT_IN_DHCP, -348) |
501 | 501 |
502 // The HTTP response contained multiple Content-Disposition headers. | 502 // The HTTP response contained multiple Content-Disposition headers. |
503 NET_ERROR(RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION, -349) | 503 NET_ERROR(ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION, -349) |
504 | 504 |
505 // The HTTP response contained multiple Location headers. | 505 // The HTTP response contained multiple Location headers. |
506 NET_ERROR(RESPONSE_HEADERS_MULTIPLE_LOCATION, -350) | 506 NET_ERROR(ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION, -350) |
507 | 507 |
508 // SPDY server refused the stream. Client should retry. This should never be a | 508 // SPDY server refused the stream. Client should retry. This should never be a |
509 // user-visible error. | 509 // user-visible error. |
510 NET_ERROR(SPDY_SERVER_REFUSED_STREAM, -351) | 510 NET_ERROR(ERR_SPDY_SERVER_REFUSED_STREAM, -351) |
511 | 511 |
512 // SPDY server didn't respond to the PING message. | 512 // SPDY server didn't respond to the PING message. |
513 NET_ERROR(SPDY_PING_FAILED, -352) | 513 NET_ERROR(ERR_SPDY_PING_FAILED, -352) |
514 | 514 |
515 // The request couldn't be completed on an HTTP pipeline. Client should retry. | 515 // The request couldn't be completed on an HTTP pipeline. Client should retry. |
516 NET_ERROR(PIPELINE_EVICTION, -353) | 516 NET_ERROR(ERR_PIPELINE_EVICTION, -353) |
517 | 517 |
518 // The HTTP response body transferred fewer bytes than were advertised by the | 518 // The HTTP response body transferred fewer bytes than were advertised by the |
519 // Content-Length header when the connection is closed. | 519 // Content-Length header when the connection is closed. |
520 NET_ERROR(CONTENT_LENGTH_MISMATCH, -354) | 520 NET_ERROR(ERR_CONTENT_LENGTH_MISMATCH, -354) |
521 | 521 |
522 // The HTTP response body is transferred with Chunked-Encoding, but the | 522 // The HTTP response body is transferred with Chunked-Encoding, but the |
523 // terminating zero-length chunk was never sent when the connection is closed. | 523 // terminating zero-length chunk was never sent when the connection is closed. |
524 NET_ERROR(INCOMPLETE_CHUNKED_ENCODING, -355) | 524 NET_ERROR(ERR_INCOMPLETE_CHUNKED_ENCODING, -355) |
525 | 525 |
526 // The cache does not have the requested entry. | 526 // The cache does not have the requested entry. |
527 NET_ERROR(CACHE_MISS, -400) | 527 NET_ERROR(ERR_CACHE_MISS, -400) |
528 | 528 |
529 // Unable to read from the disk cache. | 529 // Unable to read from the disk cache. |
530 NET_ERROR(CACHE_READ_FAILURE, -401) | 530 NET_ERROR(ERR_CACHE_READ_FAILURE, -401) |
531 | 531 |
532 // Unable to write to the disk cache. | 532 // Unable to write to the disk cache. |
533 NET_ERROR(CACHE_WRITE_FAILURE, -402) | 533 NET_ERROR(ERR_CACHE_WRITE_FAILURE, -402) |
534 | 534 |
535 // The operation is not supported for this entry. | 535 // The operation is not supported for this entry. |
536 NET_ERROR(CACHE_OPERATION_NOT_SUPPORTED, -403) | 536 NET_ERROR(ERR_CACHE_OPERATION_NOT_SUPPORTED, -403) |
537 | 537 |
538 // The disk cache is unable to open this entry. | 538 // The disk cache is unable to open this entry. |
539 NET_ERROR(CACHE_OPEN_FAILURE, -404) | 539 NET_ERROR(ERR_CACHE_OPEN_FAILURE, -404) |
540 | 540 |
541 // The disk cache is unable to create this entry. | 541 // The disk cache is unable to create this entry. |
542 NET_ERROR(CACHE_CREATE_FAILURE, -405) | 542 NET_ERROR(ERR_CACHE_CREATE_FAILURE, -405) |
543 | 543 |
544 // Multiple transactions are racing to create disk cache entries. This is an | 544 // Multiple transactions are racing to create disk cache entries. This is an |
545 // internal error returned from the HttpCache to the HttpCacheTransaction that | 545 // internal error returned from the HttpCache to the HttpCacheTransaction that |
546 // tells the transaction to restart the entry-creation logic because the state | 546 // tells the transaction to restart the entry-creation logic because the state |
547 // of the cache has changed. | 547 // of the cache has changed. |
548 NET_ERROR(CACHE_RACE, -406) | 548 NET_ERROR(ERR_CACHE_RACE, -406) |
549 | 549 |
550 // The server's response was insecure (e.g. there was a cert error). | 550 // The server's response was insecure (e.g. there was a cert error). |
551 NET_ERROR(INSECURE_RESPONSE, -501) | 551 NET_ERROR(ERR_INSECURE_RESPONSE, -501) |
552 | 552 |
553 // The server responded to a <keygen> with a generated client cert that we | 553 // The server responded to a <keygen> with a generated client cert that we |
554 // don't have the matching private key for. | 554 // don't have the matching private key for. |
555 NET_ERROR(NO_PRIVATE_KEY_FOR_CERT, -502) | 555 NET_ERROR(ERR_NO_PRIVATE_KEY_FOR_CERT, -502) |
556 | 556 |
557 // An error adding to the OS certificate database (e.g. OS X Keychain). | 557 // An error adding to the OS certificate database (e.g. OS X Keychain). |
558 NET_ERROR(ADD_USER_CERT_FAILED, -503) | 558 NET_ERROR(ERR_ADD_USER_CERT_FAILED, -503) |
559 | 559 |
560 // *** Code -600 is reserved (was FTP_PASV_COMMAND_FAILED). *** | 560 // *** Code -600 is reserved (was FTP_PASV_COMMAND_FAILED). *** |
561 | 561 |
562 // A generic error for failed FTP control connection command. | 562 // A generic error for failed FTP control connection command. |
563 // If possible, please use or add a more specific error code. | 563 // If possible, please use or add a more specific error code. |
564 NET_ERROR(FTP_FAILED, -601) | 564 NET_ERROR(ERR_FTP_FAILED, -601) |
565 | 565 |
566 // The server cannot fulfill the request at this point. This is a temporary | 566 // The server cannot fulfill the request at this point. This is a temporary |
567 // error. | 567 // error. |
568 // FTP response code 421. | 568 // FTP response code 421. |
569 NET_ERROR(FTP_SERVICE_UNAVAILABLE, -602) | 569 NET_ERROR(ERR_FTP_SERVICE_UNAVAILABLE, -602) |
570 | 570 |
571 // The server has aborted the transfer. | 571 // The server has aborted the transfer. |
572 // FTP response code 426. | 572 // FTP response code 426. |
573 NET_ERROR(FTP_TRANSFER_ABORTED, -603) | 573 NET_ERROR(ERR_FTP_TRANSFER_ABORTED, -603) |
574 | 574 |
575 // The file is busy, or some other temporary error condition on opening | 575 // The file is busy, or some other temporary error condition on opening |
576 // the file. | 576 // the file. |
577 // FTP response code 450. | 577 // FTP response code 450. |
578 NET_ERROR(FTP_FILE_BUSY, -604) | 578 NET_ERROR(ERR_FTP_FILE_BUSY, -604) |
579 | 579 |
580 // Server rejected our command because of syntax errors. | 580 // Server rejected our command because of syntax errors. |
581 // FTP response codes 500, 501. | 581 // FTP response codes 500, 501. |
582 NET_ERROR(FTP_SYNTAX_ERROR, -605) | 582 NET_ERROR(ERR_FTP_SYNTAX_ERROR, -605) |
583 | 583 |
584 // Server does not support the command we issued. | 584 // Server does not support the command we issued. |
585 // FTP response codes 502, 504. | 585 // FTP response codes 502, 504. |
586 NET_ERROR(FTP_COMMAND_NOT_SUPPORTED, -606) | 586 NET_ERROR(ERR_FTP_COMMAND_NOT_SUPPORTED, -606) |
587 | 587 |
588 // Server rejected our command because we didn't issue the commands in right | 588 // Server rejected our command because we didn't issue the commands in right |
589 // order. | 589 // order. |
590 // FTP response code 503. | 590 // FTP response code 503. |
591 NET_ERROR(FTP_BAD_COMMAND_SEQUENCE, -607) | 591 NET_ERROR(ERR_FTP_BAD_COMMAND_SEQUENCE, -607) |
592 | 592 |
593 // PKCS #12 import failed due to incorrect password. | 593 // PKCS #12 import failed due to incorrect password. |
594 NET_ERROR(PKCS12_IMPORT_BAD_PASSWORD, -701) | 594 NET_ERROR(ERR_PKCS12_IMPORT_BAD_PASSWORD, -701) |
595 | 595 |
596 // PKCS #12 import failed due to other error. | 596 // PKCS #12 import failed due to other error. |
597 NET_ERROR(PKCS12_IMPORT_FAILED, -702) | 597 NET_ERROR(ERR_PKCS12_IMPORT_FAILED, -702) |
598 | 598 |
599 // CA import failed - not a CA cert. | 599 // CA import failed - not a CA cert. |
600 NET_ERROR(IMPORT_CA_CERT_NOT_CA, -703) | 600 NET_ERROR(ERR_IMPORT_CA_CERT_NOT_CA, -703) |
601 | 601 |
602 // Import failed - certificate already exists in database. | 602 // Import failed - certificate already exists in database. |
603 // Note it's a little weird this is an error but reimporting a PKCS12 is ok | 603 // Note it's a little weird this is an error but reimporting a PKCS12 is ok |
604 // (no-op). That's how Mozilla does it, though. | 604 // (no-op). That's how Mozilla does it, though. |
605 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) | 605 NET_ERROR(ERR_IMPORT_CERT_ALREADY_EXISTS, -704) |
606 | 606 |
607 // CA import failed due to some other error. | 607 // CA import failed due to some other error. |
608 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) | 608 NET_ERROR(ERR_IMPORT_CA_CERT_FAILED, -705) |
609 | 609 |
610 // Server certificate import failed due to some internal error. | 610 // Server certificate import failed due to some internal error. |
611 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) | 611 NET_ERROR(ERR_IMPORT_SERVER_CERT_FAILED, -706) |
612 | 612 |
613 // PKCS #12 import failed due to invalid MAC. | 613 // PKCS #12 import failed due to invalid MAC. |
614 NET_ERROR(PKCS12_IMPORT_INVALID_MAC, -707) | 614 NET_ERROR(ERR_PKCS12_IMPORT_INVALID_MAC, -707) |
615 | 615 |
616 // PKCS #12 import failed due to invalid/corrupt file. | 616 // PKCS #12 import failed due to invalid/corrupt file. |
617 NET_ERROR(PKCS12_IMPORT_INVALID_FILE, -708) | 617 NET_ERROR(ERR_PKCS12_IMPORT_INVALID_FILE, -708) |
618 | 618 |
619 // PKCS #12 import failed due to unsupported features. | 619 // PKCS #12 import failed due to unsupported features. |
620 NET_ERROR(PKCS12_IMPORT_UNSUPPORTED, -709) | 620 NET_ERROR(ERR_PKCS12_IMPORT_UNSUPPORTED, -709) |
621 | 621 |
622 // Key generation failed. | 622 // Key generation failed. |
623 NET_ERROR(KEY_GENERATION_FAILED, -710) | 623 NET_ERROR(ERR_KEY_GENERATION_FAILED, -710) |
624 | 624 |
625 // Server-bound certificate generation failed. | 625 // Server-bound certificate generation failed. |
626 NET_ERROR(ORIGIN_BOUND_CERT_GENERATION_FAILED, -711) | 626 NET_ERROR(ERR_ORIGIN_BOUND_CERT_GENERATION_FAILED, -711) |
627 | 627 |
628 // Failure to export private key. | 628 // Failure to export private key. |
629 NET_ERROR(PRIVATE_KEY_EXPORT_FAILED, -712) | 629 NET_ERROR(ERR_PRIVATE_KEY_EXPORT_FAILED, -712) |
630 | 630 |
631 // DNS error codes. | 631 // DNS error codes. |
632 | 632 |
633 // DNS resolver received a malformed response. | 633 // DNS resolver received a malformed response. |
634 NET_ERROR(DNS_MALFORMED_RESPONSE, -800) | 634 NET_ERROR(ERR_DNS_MALFORMED_RESPONSE, -800) |
635 | 635 |
636 // DNS server requires TCP | 636 // DNS server requires TCP |
637 NET_ERROR(DNS_SERVER_REQUIRES_TCP, -801) | 637 NET_ERROR(ERR_DNS_SERVER_REQUIRES_TCP, -801) |
638 | 638 |
639 // DNS server failed. This error is returned for all of the following | 639 // DNS server failed. This error is returned for all of the following |
640 // error conditions: | 640 // error conditions: |
641 // 1 - Format error - The name server was unable to interpret the query. | 641 // 1 - Format error - The name server was unable to interpret the query. |
642 // 2 - Server failure - The name server was unable to process this query | 642 // 2 - Server failure - The name server was unable to process this query |
643 // due to a problem with the name server. | 643 // due to a problem with the name server. |
644 // 4 - Not Implemented - The name server does not support the requested | 644 // 4 - Not Implemented - The name server does not support the requested |
645 // kind of query. | 645 // kind of query. |
646 // 5 - Refused - The name server refuses to perform the specified | 646 // 5 - Refused - The name server refuses to perform the specified |
647 // operation for policy reasons. | 647 // operation for policy reasons. |
648 NET_ERROR(DNS_SERVER_FAILED, -802) | 648 NET_ERROR(ERR_DNS_SERVER_FAILED, -802) |
649 | 649 |
650 // DNS transaction timed out. | 650 // DNS transaction timed out. |
651 NET_ERROR(DNS_TIMED_OUT, -803) | 651 NET_ERROR(ERR_DNS_TIMED_OUT, -803) |
652 | 652 |
653 // The entry was not found in cache, for cache-only lookups. | 653 // The entry was not found in cache, for cache-only lookups. |
654 NET_ERROR(DNS_CACHE_MISS, -804) | 654 NET_ERROR(ERR_DNS_CACHE_MISS, -804) |
655 | 655 |
656 // Suffix search list rules prevent resolution of the given host name. | 656 // Suffix search list rules prevent resolution of the given host name. |
657 NET_ERROR(DNS_SEARCH_EMPTY, -805) | 657 NET_ERROR(ERR_DNS_SEARCH_EMPTY, -805) |
658 | 658 |
659 // Failed to sort addresses according to RFC3484. | 659 // Failed to sort addresses according to RFC3484. |
660 NET_ERROR(DNS_SORT_ERROR, -806) | 660 NET_ERROR(ERR_DNS_SORT_ERROR, -806) |
OLD | NEW |