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