Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: mojo/services/network/public/interfaces/network_error.mojom

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

Powered by Google App Engine
This is Rietveld 408576698