• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit ArkWeb
19 */
20
21/**
22 * Web net error list.
23 *
24 * @enum { number }
25 * @syscap SystemCapability.Web.Webview.Core
26 * @atomicservice
27 * @since 12
28 */
29export declare enum WebNetErrorList {
30  /**
31   * Normal.
32   *
33   * @syscap SystemCapability.Web.Webview.Core
34   * @atomicservice
35   * @since 12
36   */
37  NET_OK = 0,
38
39  /**
40   * An asynchronous IO operation is not yet complete.  This usually does not
41   * indicate a fatal error.  Typically this error will be generated as a
42   * notification to wait for some external notification that the IO operation
43   * finally completed.
44   *
45   * @syscap SystemCapability.Web.Webview.Core
46   * @atomicservice
47   * @since 12
48   */
49  ERR_IO_PENDING = -1,
50
51  /**
52   * A generic failure occurred.
53   *
54   * @syscap SystemCapability.Web.Webview.Core
55   * @atomicservice
56   * @since 12
57   */
58  ERR_FAILED = -2,
59
60  /**
61   * An operation was aborted (due to user action).
62   *
63   * @syscap SystemCapability.Web.Webview.Core
64   * @atomicservice
65   * @since 12
66   */
67  ERR_ABORTED = -3,
68
69  /**
70   * An argument to the function is incorrect.
71   *
72   * @syscap SystemCapability.Web.Webview.Core
73   * @atomicservice
74   * @since 12
75   */
76  ERR_INVALID_ARGUMENT = -4,
77
78  /**
79   * The handle or file descriptor is invalid.
80   *
81   * @syscap SystemCapability.Web.Webview.Core
82   * @atomicservice
83   * @since 12
84   */
85  ERR_INVALID_HANDLE = -5,
86
87  /**
88   * The file or directory cannot be found.
89   *
90   * @syscap SystemCapability.Web.Webview.Core
91   * @atomicservice
92   * @since 12
93   */
94  ERR_FILE_NOT_FOUND = -6,
95
96  /**
97   * An operation timed out.
98   *
99   * @syscap SystemCapability.Web.Webview.Core
100   * @atomicservice
101   * @since 12
102   */
103  ERR_TIMED_OUT = -7,
104
105  /**
106   * The file is too large.
107   *
108   * @syscap SystemCapability.Web.Webview.Core
109   * @atomicservice
110   * @since 12
111   */
112  ERR_FILE_TOO_LARGE = -8,
113
114  /**
115   * An unexpected error.  This may be caused by a programming mistake or an
116   * invalid assumption.
117   *
118   * @syscap SystemCapability.Web.Webview.Core
119   * @atomicservice
120   * @since 12
121   */
122  ERR_UNEXPECTED = -9,
123
124  /**
125   * Permission to access a resource, other than the network, was denied.
126   *
127   * @syscap SystemCapability.Web.Webview.Core
128   * @atomicservice
129   * @since 12
130   */
131  ERR_ACCESS_DENIED = -10,
132
133  /**
134   * The operation failed because of unimplemented functionality.
135   *
136   * @syscap SystemCapability.Web.Webview.Core
137   * @atomicservice
138   * @since 12
139   */
140  ERR_NOT_IMPLEMENTED = -11,
141
142  /**
143   * There were not enough resources to complete the operation.
144   *
145   * @syscap SystemCapability.Web.Webview.Core
146   * @atomicservice
147   * @since 12
148   */
149  ERR_INSUFFICIENT_RESOURCES = -12,
150
151  /**
152   * Memory allocation failed.
153   *
154   * @syscap SystemCapability.Web.Webview.Core
155   * @atomicservice
156   * @since 12
157   */
158  ERR_OUT_OF_MEMORY = -13,
159
160  /**
161   * The file upload failed because the file's modification time was different
162   * from the expectation.
163   *
164   * @syscap SystemCapability.Web.Webview.Core
165   * @atomicservice
166   * @since 12
167   */
168  ERR_UPLOAD_FILE_CHANGED = -14,
169
170  /**
171   * The socket is not connected.
172   *
173   * @syscap SystemCapability.Web.Webview.Core
174   * @atomicservice
175   * @since 12
176   */
177  ERR_SOCKET_NOT_CONNECTED = -15,
178
179  /**
180   * The file already exists.
181   *
182   * @syscap SystemCapability.Web.Webview.Core
183   * @atomicservice
184   * @since 12
185   */
186  ERR_FILE_EXISTS = -16,
187
188  /**
189   * The path or file name is too long.
190   *
191   * @syscap SystemCapability.Web.Webview.Core
192   * @atomicservice
193   * @since 12
194   */
195  ERR_FILE_PATH_TOO_LONG = -17,
196
197  /**
198   * Not enough room left on the disk.
199   *
200   * @syscap SystemCapability.Web.Webview.Core
201   * @atomicservice
202   * @since 12
203   */
204  ERR_FILE_NO_SPACE = -18,
205
206  /**
207   * The file has a virus.
208   *
209   * @syscap SystemCapability.Web.Webview.Core
210   * @atomicservice
211   * @since 12
212   */
213  ERR_FILE_VIRUS_INFECTED = -19,
214
215  /**
216   * The client chose to block the request.
217   *
218   * @syscap SystemCapability.Web.Webview.Core
219   * @atomicservice
220   * @since 12
221   */
222  ERR_BLOCKED_BY_CLIENT = -20,
223
224  /**
225   * The network changed.
226   *
227   * @syscap SystemCapability.Web.Webview.Core
228   * @atomicservice
229   * @since 12
230   */
231  ERR_NETWORK_CHANGED = -21,
232
233  /**
234   * The request was blocked by the URL block list configured by the domain
235   * administrator.
236   *
237   * @syscap SystemCapability.Web.Webview.Core
238   * @atomicservice
239   * @since 12
240   */
241  ERR_BLOCKED_BY_ADMINISTRATOR = -22,
242
243  /**
244   * The socket is already connected.
245   *
246   * @syscap SystemCapability.Web.Webview.Core
247   * @atomicservice
248   * @since 12
249   */
250  ERR_SOCKET_CONNECTED = -23,
251
252  /**
253   * The upload failed because the upload stream needed to be re-read, due to a
254   * retry or a redirect, but the upload stream doesn't support that operation.
255   *
256   * @syscap SystemCapability.Web.Webview.Core
257   * @atomicservice
258   * @since 12
259   */
260  ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED = -25,
261
262  /**
263   * The request failed because the URLRequestContext is shutting down, or has
264   * been shut down.
265   *
266   * @syscap SystemCapability.Web.Webview.Core
267   * @atomicservice
268   * @since 12
269   */
270  ERR_CONTEXT_SHUT_DOWN = -26,
271
272  /**
273   * The request failed because the response was delivered along with requirements
274   * which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor
275   * checks and 'Cross-Origin-Resource-Policy' for instance,.
276   *
277   * @syscap SystemCapability.Web.Webview.Core
278   * @atomicservice
279   * @since 12
280   */
281  ERR_BLOCKED_BY_RESPONSE = -27,
282
283  /**
284   * The request was blocked by system policy disallowing some or all cleartext
285   * requests.
286   *
287   * @syscap SystemCapability.Web.Webview.Core
288   * @atomicservice
289   * @since 12
290   */
291  ERR_CLEARTEXT_NOT_PERMITTED = -29,
292
293  /**
294   * The request was blocked by a Content Security Policy.
295   *
296   * @syscap SystemCapability.Web.Webview.Core
297   * @atomicservice
298   * @since 12
299   */
300  ERR_BLOCKED_BY_CSP = -30,
301
302  /**
303   * The request was blocked because of no H/2 or QUIC session.
304   *
305   * @syscap SystemCapability.Web.Webview.Core
306   * @atomicservice
307   * @since 12
308   */
309  ERR_H2_OR_QUIC_REQUIRED = -31,
310
311  /**
312   * The request was blocked by CORB or ORB.
313   *
314   * @syscap SystemCapability.Web.Webview.Core
315   * @atomicservice
316   * @since 12
317   */
318  ERR_BLOCKED_BY_ORB = -32,
319
320  /**
321   * A connection was closed (corresponding to a TCP FIN,.
322   *
323   * @syscap SystemCapability.Web.Webview.Core
324   * @atomicservice
325   * @since 12
326   */
327  ERR_CONNECTION_CLOSED = -100,
328
329  /**
330   * A connection was reset (corresponding to a TCP RST,.
331   *
332   * @syscap SystemCapability.Web.Webview.Core
333   * @atomicservice
334   * @since 12
335   */
336  ERR_CONNECTION_RESET = -101,
337
338  /**
339   * A connection attempt was refused.
340   *
341   * @syscap SystemCapability.Web.Webview.Core
342   * @atomicservice
343   * @since 12
344   */
345  ERR_CONNECTION_REFUSED = -102,
346
347  /**
348   * A connection timed out as a result of not receiving an ACK for data sent.
349   * This can include a FIN packet that did not get ACK'd.
350   *
351   * @syscap SystemCapability.Web.Webview.Core
352   * @atomicservice
353   * @since 12
354   */
355  ERR_CONNECTION_ABORTED = -103,
356
357  /**
358   * A connection attempt failed.
359   *
360   * @syscap SystemCapability.Web.Webview.Core
361   * @atomicservice
362   * @since 12
363   */
364  ERR_CONNECTION_FAILED = -104,
365
366  /**
367   * The host name could not be resolved.
368   *
369   * @syscap SystemCapability.Web.Webview.Core
370   * @atomicservice
371   * @since 12
372   */
373  ERR_NAME_NOT_RESOLVED = -105,
374
375  /**
376   * The Internet connection has been lost.
377   *
378   * @syscap SystemCapability.Web.Webview.Core
379   * @atomicservice
380   * @since 12
381   */
382  ERR_INTERNET_DISCONNECTED = -106,
383
384  /**
385   * An SSL protocol error occurred.
386   *
387   * @syscap SystemCapability.Web.Webview.Core
388   * @atomicservice
389   * @since 12
390   */
391  ERR_SSL_PROTOCOL_ERROR = -107,
392
393  /**
394   * The IP address or port number is invalid (e.g., cannot connect to the IP
395   * address 0 or the port 0,.
396   *
397   * @syscap SystemCapability.Web.Webview.Core
398   * @atomicservice
399   * @since 12
400   */
401  ERR_ADDRESS_INVALID = -108,
402
403  /**
404   * The IP address is unreachable.  This usually means that there is no route to
405   * the specified host or network.
406   *
407   * @syscap SystemCapability.Web.Webview.Core
408   * @atomicservice
409   * @since 12
410   */
411  ERR_ADDRESS_UNREACHABLE = -109,
412
413  /**
414   * The server requested a client certificate for SSL client authentication.
415   *
416   * @syscap SystemCapability.Web.Webview.Core
417   * @atomicservice
418   * @since 12
419   */
420  ERR_SSL_CLIENT_AUTH_CERT_NEEDED = -110,
421
422  /**
423   * A tunnel connection through the proxy could not be established.
424   *
425   * @syscap SystemCapability.Web.Webview.Core
426   * @atomicservice
427   * @since 12
428   */
429  ERR_TUNNEL_CONNECTION_FAILED = -111,
430
431  /**
432   * No SSL protocol versions are enabled.
433   *
434   * @syscap SystemCapability.Web.Webview.Core
435   * @atomicservice
436   * @since 12
437   */
438  ERR_NO_SSL_VERSIONS_ENABLED = -112,
439
440  /**
441   * The client and server don't support a common SSL protocol version or
442   * cipher suite.
443   *
444   * @syscap SystemCapability.Web.Webview.Core
445   * @atomicservice
446   * @since 12
447   */
448  ERR_SSL_VERSION_OR_CIPHER_MISMATCH = -113,
449
450  /**
451   * The server requested a renegotiation (rehandshake,.
452   *
453   * @syscap SystemCapability.Web.Webview.Core
454   * @atomicservice
455   * @since 12
456   */
457  ERR_SSL_RENEGOTIATION_REQUESTED = -114,
458
459  /**
460   * The proxy requested authentication (for tunnel establishment, with an
461   * unsupported method.
462   *
463   * @syscap SystemCapability.Web.Webview.Core
464   * @atomicservice
465   * @since 12
466   */
467  ERR_PROXY_AUTH_UNSUPPORTED = -115,
468
469  /**
470   * The SSL handshake failed because of a bad or missing client certificate.
471   *
472   * @syscap SystemCapability.Web.Webview.Core
473   * @atomicservice
474   * @since 12
475   */
476  ERR_BAD_SSL_CLIENT_AUTH_CERT = -117,
477
478  /**
479   * A connection attempt timed out.
480   *
481   * @syscap SystemCapability.Web.Webview.Core
482   * @atomicservice
483   * @since 12
484   */
485  ERR_CONNECTION_TIMED_OUT = -118,
486
487  /**
488   * There are too many pending DNS resolves, so a request in the queue was
489   * aborted.
490   *
491   * @syscap SystemCapability.Web.Webview.Core
492   * @atomicservice
493   * @since 12
494   */
495  ERR_HOST_RESOLVER_QUEUE_TOO_LARGE = -119,
496
497  /**
498   * Failed establishing a connection to the SOCKS proxy server for a target host.
499   *
500   * @syscap SystemCapability.Web.Webview.Core
501   * @atomicservice
502   * @since 12
503   */
504  ERR_SOCKS_CONNECTION_FAILED = -120,
505
506  /**
507   * The SOCKS proxy server failed establishing connection to the target host
508   * because that host is unreachable.
509   *
510   * @syscap SystemCapability.Web.Webview.Core
511   * @atomicservice
512   * @since 12
513   */
514  ERR_SOCKS_CONNECTION_HOST_UNREACHABLE = -121,
515
516  /**
517   * The request to negotiate an alternate protocol failed.
518   *
519   * @syscap SystemCapability.Web.Webview.Core
520   * @atomicservice
521   * @since 12
522   */
523  ERR_ALPN_NEGOTIATION_FAILED = -122,
524
525  /**
526   * The peer sent an SSL no_renegotiation alert message.
527   *
528   * @syscap SystemCapability.Web.Webview.Core
529   * @atomicservice
530   * @since 12
531   */
532  ERR_SSL_NO_RENEGOTIATION = -123,
533
534  /**
535   * Winsock sometimes reports more data written than passed.  This is probably
536   * due to a broken LSP.
537   *
538   * @syscap SystemCapability.Web.Webview.Core
539   * @atomicservice
540   * @since 12
541   */
542  ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES = -124,
543
544  /**
545   * An SSL peer sent us a fatal decompression_failure alert. This typically
546   * occurs when a peer selects DEFLATE compression in the mistaken belief that
547   * it supports it.
548   *
549   * @syscap SystemCapability.Web.Webview.Core
550   * @atomicservice
551   * @since 12
552   */
553  ERR_SSL_DECOMPRESSION_FAILURE_ALERT = -125,
554
555  /**
556   * An SSL peer sent us a fatal bad_record_mac alert. This has been observed
557   * from servers with buggy DEFLATE support.
558   *
559   * @syscap SystemCapability.Web.Webview.Core
560   * @atomicservice
561   * @since 12
562   */
563  ERR_SSL_BAD_RECORD_MAC_ALERT = -126,
564
565  /**
566   * The proxy requested authentication (for tunnel establishment,.
567   *
568   * @syscap SystemCapability.Web.Webview.Core
569   * @atomicservice
570   * @since 12
571   */
572  ERR_PROXY_AUTH_REQUESTED = -127,
573
574  /**
575   * Could not create a connection to the proxy server. An error occurred
576   * either in resolving its name, or in connecting a socket to it.
577   * Note that this does NOT include failures during the actual "CONNECT" method
578   * of an HTTP proxy.
579   *
580   * @syscap SystemCapability.Web.Webview.Core
581   * @atomicservice
582   * @since 12
583   */
584  ERR_PROXY_CONNECTION_FAILED = -130,
585
586  /**
587   * A mandatory proxy configuration could not be used. Currently this means
588   * that a mandatory PAC script could not be fetched, parsed or executed.
589   *
590   * @syscap SystemCapability.Web.Webview.Core
591   * @atomicservice
592   * @since 12
593   */
594  ERR_MANDATORY_PROXY_CONFIGURATION_FAILED = -131,
595
596  /**
597   * We've hit the max socket limit for the socket pool while preconnecting.  We
598   * don't bother trying to preconnect more sockets.
599   *
600   * @syscap SystemCapability.Web.Webview.Core
601   * @atomicservice
602   * @since 12
603   */
604  ERR_PRECONNECT_MAX_SOCKET_LIMIT = -133,
605
606  /**
607   * The permission to use the SSL client certificate's private key was denied.
608   *
609   * @syscap SystemCapability.Web.Webview.Core
610   * @atomicservice
611   * @since 12
612   */
613  ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED = -134,
614
615  /**
616   * The SSL client certificate has no private key.
617   *
618   * @syscap SystemCapability.Web.Webview.Core
619   * @atomicservice
620   * @since 12
621   */
622  ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY = -135,
623
624  /**
625   * The certificate presented by the HTTPS Proxy was invalid.
626   *
627   * @syscap SystemCapability.Web.Webview.Core
628   * @atomicservice
629   * @since 12
630   */
631  ERR_PROXY_CERTIFICATE_INVALID = -136,
632
633  /**
634   * An error occurred when trying to do a name resolution (DNS,.
635   *
636   * @syscap SystemCapability.Web.Webview.Core
637   * @atomicservice
638   * @since 12
639   */
640  ERR_NAME_RESOLUTION_FAILED = -137,
641
642  /**
643   * Permission to access the network was denied. This is used to distinguish
644   * errors that were most likely caused by a firewall from other access denied
645   * errors. See also ERR_ACCESS_DENIED.
646   *
647   * @syscap SystemCapability.Web.Webview.Core
648   * @atomicservice
649   * @since 12
650   */
651  ERR_NETWORK_ACCESS_DENIED = -138,
652
653  /**
654   * The request throttler module cancelled this request to avoid DDOS.
655   *
656   * @syscap SystemCapability.Web.Webview.Core
657   * @atomicservice
658   * @since 12
659   */
660  ERR_TEMPORARILY_THROTTLED = -139,
661  /**
662   * A request to create an SSL tunnel connection through the HTTPS proxy
663   * received a 302 (temporary redirect, response.  The response body might
664   * include a description of why the request failed.
665   *
666   * @syscap SystemCapability.Web.Webview.Core
667   * @atomicservice
668   * @since 12
669   */
670  ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT = -140,
671
672  /**
673   * We were unable to sign the CertificateVerify data of an SSL client auth
674   * handshake with the client certificate's private key.
675   * Possible causes for this include the user implicitly or explicitly
676   * denying access to the private key, the private key may not be valid for
677   * signing, the key may be relying on a cached handle which is no longer
678   * valid, or the CSP won't allow arbitrary data to be signed.
679   *
680   * @syscap SystemCapability.Web.Webview.Core
681   * @atomicservice
682   * @since 12
683   */
684  ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED = -141,
685
686  /**
687   * The message was too large for the transport.  (for example a UDP message
688   * which exceeds size threshold,.
689   *
690   * @syscap SystemCapability.Web.Webview.Core
691   * @atomicservice
692   * @since 12
693   */
694  ERR_MSG_TOO_BIG = -142,
695
696  /**
697   * Websocket protocol error. Indicates that we are terminating the connection
698   * due to a malformed frame or other protocol violation.
699   *
700   * @syscap SystemCapability.Web.Webview.Core
701   * @atomicservice
702   * @since 12
703   */
704  ERR_WS_PROTOCOL_ERROR = -145,
705
706  /**
707   * Returned when attempting to bind an address that is already in use.
708   *
709   * @syscap SystemCapability.Web.Webview.Core
710   * @atomicservice
711   * @since 12
712   */
713  ERR_ADDRESS_IN_USE = -147,
714
715  /**
716   * An operation failed because the SSL handshake has not completed.
717   *
718   * @syscap SystemCapability.Web.Webview.Core
719   * @atomicservice
720   * @since 12
721   */
722  ERR_SSL_HANDSHAKE_NOT_COMPLETED = -148,
723
724  /**
725   * SSL peer's public key is invalid.
726   *
727   * @syscap SystemCapability.Web.Webview.Core
728   * @atomicservice
729   * @since 12
730   */
731  ERR_SSL_BAD_PEER_PUBLIC_KEY = -149,
732
733  /**
734   * The certificate didn't match the built-in public key pins for the host name.
735   * The pins are set in net/http/transport_security_state.cc and require that
736   * one of a set of public keys exist on the path from the leaf to the root.
737   *
738   * @syscap SystemCapability.Web.Webview.Core
739   * @atomicservice
740   * @since 12
741   */
742  ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN = -150,
743
744  /**
745   * Server request for client certificate did not contain any types we support.
746   *
747   * @syscap SystemCapability.Web.Webview.Core
748   * @atomicservice
749   * @since 12
750   */
751  ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED = -151,
752
753  /**
754   * An SSL peer sent us a fatal decrypt_error alert. This typically occurs when
755   * a peer could not correctly verify a signature (in CertificateVerify or
756   * ServerKeyExchange, or validate a Finished message.
757   *
758   * @syscap SystemCapability.Web.Webview.Core
759   * @atomicservice
760   * @since 12
761   */
762  ERR_SSL_DECRYPT_ERROR_ALERT = -153,
763
764  /**
765   * There are too many pending WebSocketJob instances, so the new job was not
766   * pushed to the queue.
767   *
768   * @syscap SystemCapability.Web.Webview.Core
769   * @atomicservice
770   * @since 12
771   */
772  ERR_WS_THROTTLE_QUEUE_TOO_LARGE = -154,
773
774  /**
775   * The SSL server certificate changed in a renegotiation.
776   *
777   * @syscap SystemCapability.Web.Webview.Core
778   * @atomicservice
779   * @since 12
780   */
781  ERR_SSL_SERVER_CERT_CHANGED = -156,
782
783  /**
784   * The SSL server sent us a fatal unrecognized_name alert.
785   *
786   * @syscap SystemCapability.Web.Webview.Core
787   * @atomicservice
788   * @since 12
789   */
790  ERR_SSL_UNRECOGNIZED_NAME_ALERT = -159,
791
792  /**
793   * Failed to set the socket's receive buffer size as requested.
794   *
795   * @syscap SystemCapability.Web.Webview.Core
796   * @atomicservice
797   * @since 12
798   */
799  ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR = -160,
800
801  /**
802   * Failed to set the socket's send buffer size as requested.
803   *
804   * @syscap SystemCapability.Web.Webview.Core
805   * @atomicservice
806   * @since 12
807   */
808  ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR = -161,
809
810  /**
811   * Failed to set the socket's receive buffer size as requested, despite success
812   * return code from setsockopt.
813   *
814   * @syscap SystemCapability.Web.Webview.Core
815   * @atomicservice
816   * @since 12
817   */
818  ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE = -162,
819
820  /**
821   * Failed to set the socket's send buffer size as requested, despite success
822   * return code from setsockopt.
823   *
824   * @syscap SystemCapability.Web.Webview.Core
825   * @atomicservice
826   * @since 12
827   */
828  ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE = -163,
829
830  /**
831   * Failed to import a client certificate from the platform store into the SSL
832   * library.
833   *
834   * @syscap SystemCapability.Web.Webview.Core
835   * @atomicservice
836   * @since 12
837   */
838  ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT = -164,
839
840  /**
841   * Resolving a hostname to an IP address list included the IPv4 address
842   * "127.0.53.53". This is a special IP address which ICANN has recommended to
843   * indicate there was a name collision, and alert admins to a potential
844   * problem.
845   *
846   * @syscap SystemCapability.Web.Webview.Core
847   * @atomicservice
848   * @since 12
849   */
850  ERR_ICANN_NAME_COLLISION = -166,
851
852  /**
853   * The SSL server presented a certificate which could not be decoded. This is
854   * not a certificate error code as no X509Certificate object is available. This
855   * error is fatal.
856   *
857   * @syscap SystemCapability.Web.Webview.Core
858   * @atomicservice
859   * @since 12
860   */
861  ERR_SSL_SERVER_CERT_BAD_FORMAT = -167,
862
863  /**
864   * Certificate Transparency: Received a signed tree head that failed to parse.
865   *
866   * @syscap SystemCapability.Web.Webview.Core
867   * @atomicservice
868   * @since 12
869   */
870  ERR_CT_STH_PARSING_FAILED = -168,
871
872  /**
873   * Certificate Transparency: Received a signed tree head whose JSON parsing was
874   * OK but was missing some of the fields.
875   *
876   * @syscap SystemCapability.Web.Webview.Core
877   * @atomicservice
878   * @since 12
879   */
880  ERR_CT_STH_INCOMPLETE = -169,
881
882  /**
883   * The attempt to reuse a connection to send proxy auth credentials failed
884   * before the AuthController was used to generate credentials. The caller should
885   * reuse the controller with a new connection. This error is only used
886   * internally by the network stack.
887   *
888   * @syscap SystemCapability.Web.Webview.Core
889   * @atomicservice
890   * @since 12
891   */
892  ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH = -170,
893
894  /**
895   * Certificate Transparency: Failed to parse the received consistency proof.
896   *
897   * @syscap SystemCapability.Web.Webview.Core
898   * @atomicservice
899   * @since 12
900   */
901  ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED = -171,
902
903  /**
904   * The SSL server required an unsupported cipher suite that has since been
905   * removed. This error will temporarily be signaled on a fallback for one or two
906   * releases immediately following a cipher suite's removal, after which the
907   * fallback will be removed.
908   *
909   * @syscap SystemCapability.Web.Webview.Core
910   * @atomicservice
911   * @since 12
912   */
913  ERR_SSL_OBSOLETE_CIPHER = -172,
914
915  /**
916   * When a WebSocket handshake is done successfully and the connection has been
917   * upgraded, the URLRequest is cancelled with this error code.
918   *
919   * @syscap SystemCapability.Web.Webview.Core
920   * @atomicservice
921   * @since 12
922   */
923  ERR_WS_UPGRADE = -173,
924
925  /**
926   * Socket ReadIfReady support is not implemented. This error should not be user
927   * visible, because the normal Read(, method is used as a fallback.
928   *
929   * @syscap SystemCapability.Web.Webview.Core
930   * @atomicservice
931   * @since 12
932   */
933  ERR_READ_IF_READY_NOT_IMPLEMENTED = -174,
934
935  /**
936   * No socket buffer space is available.
937   *
938   * @syscap SystemCapability.Web.Webview.Core
939   * @atomicservice
940   * @since 12
941   */
942  ERR_NO_BUFFER_SPACE = -176,
943
944  /**
945   * There were no common signature algorithms between our client certificate
946   * private key and the server's preferences.
947   *
948   * @syscap SystemCapability.Web.Webview.Core
949   * @atomicservice
950   * @since 12
951   */
952  ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS = -177,
953
954  /**
955   * TLS 1.3 early data was rejected by the server. This will be received before
956   * any data is returned from the socket. The request should be retried with
957   * early data disabled.
958   *
959   * @syscap SystemCapability.Web.Webview.Core
960   * @atomicservice
961   * @since 12
962   */
963  ERR_EARLY_DATA_REJECTED = -178,
964
965  /**
966   * TLS 1.3 early data was offered, but the server responded with TLS 1.2 or
967   * earlier. This is an internal error code to account for a
968   * backwards-compatibility issue with early data and TLS 1.2. It will be
969   * received before any data is returned from the socket. The request should be
970   * retried with early data disabled.
971   * See https://tools.ietf.org/html/rfc8446#appendix-D.3 for details.
972   *
973   * @syscap SystemCapability.Web.Webview.Core
974   * @atomicservice
975   * @since 12
976   */
977  ERR_WRONG_VERSION_ON_EARLY_DATA = -179,
978
979  /**
980   * TLS 1.3 was enabled, but a lower version was negotiated and the server
981   * returned a value indicating it supported TLS 1.3. This is part of a security
982   * check in TLS 1.3, but it may also indicate the user is behind a buggy
983   * TLS-terminating proxy which implemented TLS 1.2 incorrectly.
984   *
985   *
986   * @syscap SystemCapability.Web.Webview.Core
987   * @atomicservice
988   * @since 12
989   */
990  ERR_TLS13_DOWNGRADE_DETECTED = -180,
991
992  /**
993   * The server's certificate has a keyUsage extension incompatible with the
994   * negotiated TLS key exchange method.
995   *
996   * @syscap SystemCapability.Web.Webview.Core
997   * @atomicservice
998   * @since 12
999   */
1000  ERR_SSL_KEY_USAGE_INCOMPATIBLE = -181,
1001
1002  /**
1003   * The ECHConfigList fetched over DNS cannot be parsed.
1004   *
1005   * @syscap SystemCapability.Web.Webview.Core
1006   * @atomicservice
1007   * @since 12
1008   */
1009  ERR_INVALID_ECH_CONFIG_LIST = -182,
1010
1011  /**
1012   * ECH was enabled, but the server was unable to decrypt the encrypted
1013   * ClientHello.
1014   *
1015   * @syscap SystemCapability.Web.Webview.Core
1016   * @atomicservice
1017   * @since 12
1018   */
1019  ERR_ECH_NOT_NEGOTIATED = -183,
1020
1021  /**
1022   * ECH was enabled, the server was unable to decrypt the encrypted ClientHello,
1023   * and additionally did not present a certificate valid for the public name.
1024   *
1025   * @syscap SystemCapability.Web.Webview.Core
1026   * @atomicservice
1027   * @since 12
1028   */
1029  ERR_ECH_FALLBACK_CERTIFICATE_INVALID = -184,
1030
1031  /**
1032   * The server responded with a certificate whose common name did not match
1033   * the host name.  This could mean:
1034   * 1. An attacker has redirected our traffic to their server and is
1035   *    presenting a certificate for which they know the private key.
1036   * 2. The server is misconfigured and responding with the wrong cert.
1037   * 3. The user is on a wireless network and is being redirected to the
1038   *    network's login page.
1039   * 4. The OS has used a DNS search suffix and the server doesn't have
1040   *    a certificate for the abbreviated name in the address bar.
1041   *
1042   * @syscap SystemCapability.Web.Webview.Core
1043   * @atomicservice
1044   * @since 12
1045   */
1046  ERR_CERT_COMMON_NAME_INVALID = -200,
1047
1048  /**
1049   * The server responded with a certificate that, by our clock, appears to
1050   * either not yet be valid or to have expired.  This could mean:
1051   * 1. An attacker is presenting an old certificate for which they have
1052   *    managed to obtain the private key.
1053   * 2. The server is misconfigured and is not presenting a valid cert.
1054   * 3. Our clock is wrong.
1055   *
1056   * @syscap SystemCapability.Web.Webview.Core
1057   * @atomicservice
1058   * @since 12
1059   */
1060  ERR_CERT_DATE_INVALID = -201,
1061
1062  /**
1063   * The server responded with a certificate that is signed by an authority
1064   * we don't trust.  The could mean:
1065   * 1. An attacker has substituted the real certificate for a cert that
1066   *    contains their public key and is signed by their cousin.
1067   * 2. The server operator has a legitimate certificate from a CA we don't
1068   *    know about, but should trust.
1069   * 3. The server is presenting a self-signed certificate, providing no
1070   *    defense against active attackers (but foiling passive attackers,.
1071   *
1072   * @syscap SystemCapability.Web.Webview.Core
1073   * @atomicservice
1074   * @since 12
1075   */
1076  ERR_CERT_AUTHORITY_INVALID = -202,
1077
1078  /**
1079   * The server responded with a certificate that contains errors.
1080   * This error is not recoverable.
1081   * MSDN describes this error as follows:
1082   *    "The SSL certificate contains errors."
1083   * NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency,
1084   * use that code instead of this one from now on.
1085   *
1086   * @syscap SystemCapability.Web.Webview.Core
1087   * @atomicservice
1088   * @since 12
1089   */
1090  ERR_CERT_CONTAINS_ERRORS = -203,
1091
1092  /**
1093   * The certificate has no mechanism for determining if it is revoked.  In
1094   * effect, this certificate cannot be revoked.
1095   *
1096   * @syscap SystemCapability.Web.Webview.Core
1097   * @atomicservice
1098   * @since 12
1099   */
1100  ERR_CERT_NO_REVOCATION_MECHANISM = -204,
1101
1102  /**
1103   * Revocation information for the security certificate for this site is not
1104   * available.  This could mean:
1105   * 1. An attacker has compromised the private key in the certificate and is
1106   *    blocking our attempt to find out that the cert was revoked.
1107   * 2. The certificate is unrevoked, but the revocation server is busy or
1108   *    unavailable.
1109   *
1110   * @syscap SystemCapability.Web.Webview.Core
1111   * @atomicservice
1112   * @since 12
1113   */
1114  ERR_CERT_UNABLE_TO_CHECK_REVOCATION = -205,
1115
1116  /**
1117   * The server responded with a certificate has been revoked.
1118   * We have the capability to ignore this error, but it is probably not the
1119   * thing to do.
1120   *
1121   * @syscap SystemCapability.Web.Webview.Core
1122   * @atomicservice
1123   * @since 12
1124   */
1125  ERR_CERT_REVOKED = -206,
1126
1127  /**
1128   * The server responded with a certificate that is invalid.
1129   * This error is not recoverable.
1130   * MSDN describes this error as follows:
1131   *    "The SSL certificate is invalid."
1132   *
1133   * @syscap SystemCapability.Web.Webview.Core
1134   * @atomicservice
1135   * @since 12
1136   */
1137  ERR_CERT_INVALID = -207,
1138
1139  /**
1140   * The server responded with a certificate that is signed using a weak
1141   * signature algorithm.
1142   *
1143   * @syscap SystemCapability.Web.Webview.Core
1144   * @atomicservice
1145   * @since 12
1146   */
1147  ERR_CERT_WEAK_SIGNATURE_ALGORITHM = -208,
1148
1149  /**
1150   * The host name specified in the certificate is not unique.
1151   *
1152   * @syscap SystemCapability.Web.Webview.Core
1153   * @atomicservice
1154   * @since 12
1155   */
1156  ERR_CERT_NON_UNIQUE_NAME = -210,
1157
1158  /**
1159   * The server responded with a certificate that contains a weak key (e.g.
1160   * a too-small RSA key,.
1161   *
1162   * @syscap SystemCapability.Web.Webview.Core
1163   * @atomicservice
1164   * @since 12
1165   */
1166  ERR_CERT_WEAK_KEY = -211,
1167
1168  /**
1169   * The certificate claimed DNS names that are in violation of name constraints.
1170   *
1171   * @syscap SystemCapability.Web.Webview.Core
1172   * @atomicservice
1173   * @since 12
1174   */
1175  ERR_CERT_NAME_CONSTRAINT_VIOLATION = -212,
1176
1177  /**
1178   * The certificate's validity period is too long.
1179   *
1180   * @syscap SystemCapability.Web.Webview.Core
1181   * @atomicservice
1182   * @since 12
1183   */
1184  ERR_CERT_VALIDITY_TOO_LONG = -213,
1185
1186  /**
1187   * Certificate Transparency was required for this connection, but the server
1188   * did not provide CT information that complied with the policy.
1189   *
1190   * @syscap SystemCapability.Web.Webview.Core
1191   * @atomicservice
1192   * @since 12
1193   */
1194  ERR_CERTIFICATE_TRANSPARENCY_REQUIRED = -214,
1195
1196  /**
1197   * The certificate chained to a legacy Symantec root that is no longer trusted.
1198   *
1199   * @syscap SystemCapability.Web.Webview.Core
1200   * @atomicservice
1201   * @since 12
1202   */
1203  ERR_CERT_SYMANTEC_LEGACY = -215,
1204
1205  /**
1206   * The certificate is known to be used for interception by an entity other
1207   * the device owner.
1208   *
1209   * @syscap SystemCapability.Web.Webview.Core
1210   * @atomicservice
1211   * @since 12
1212   */
1213  ERR_CERT_KNOWN_INTERCEPTION_BLOCKED = -217,
1214
1215  /**
1216   * The connection uses an obsolete version of SSL/TLS or cipher.
1217   *
1218   * @syscap SystemCapability.Web.Webview.Core
1219   * @atomicservice
1220   * @since 12
1221   */
1222  ERR_SSL_OBSOLETE_VERSION_OR_CIPHER = -218,
1223
1224  /**
1225   * The value immediately past the last certificate error code.
1226   *
1227   * @syscap SystemCapability.Web.Webview.Core
1228   * @atomicservice
1229   * @since 12
1230   */
1231  ERR_CERT_END = -219,
1232
1233  /**
1234   * The URL is invalid.
1235   *
1236   * @syscap SystemCapability.Web.Webview.Core
1237   * @atomicservice
1238   * @since 12
1239   */
1240  ERR_INVALID_URL = -300,
1241
1242  /**
1243   * The scheme of the URL is disallowed.
1244   *
1245   * @syscap SystemCapability.Web.Webview.Core
1246   * @atomicservice
1247   * @since 12
1248   */
1249  ERR_DISALLOWED_URL_SCHEME = -301,
1250
1251  /**
1252   * The scheme of the URL is unknown.
1253   *
1254   * @syscap SystemCapability.Web.Webview.Core
1255   * @atomicservice
1256   * @since 12
1257   */
1258  ERR_UNKNOWN_URL_SCHEME = -302,
1259
1260  /**
1261   * Attempting to load an URL resulted in a redirect to an invalid URL.
1262   *
1263   * @syscap SystemCapability.Web.Webview.Core
1264   * @atomicservice
1265   * @since 12
1266   */
1267  ERR_INVALID_REDIRECT = -303,
1268
1269  /**
1270   * Attempting to load an URL resulted in too many redirects.
1271   *
1272   * @syscap SystemCapability.Web.Webview.Core
1273   * @atomicservice
1274   * @since 12
1275   */
1276  ERR_TOO_MANY_REDIRECTS = -310,
1277
1278  /**
1279   * Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect
1280   * to file:// is considered unsafe,.
1281   *
1282   * @syscap SystemCapability.Web.Webview.Core
1283   * @atomicservice
1284   * @since 12
1285   */
1286  ERR_UNSAFE_REDIRECT = -311,
1287
1288  /**
1289   * Attempting to load an URL with an unsafe port number.
1290   *
1291   * @syscap SystemCapability.Web.Webview.Core
1292   * @atomicservice
1293   * @since 12
1294   */
1295  ERR_UNSAFE_PORT = -312,
1296
1297  /**
1298   * The server's response was invalid.
1299   *
1300   * @syscap SystemCapability.Web.Webview.Core
1301   * @atomicservice
1302   * @since 12
1303   */
1304  ERR_INVALID_RESPONSE = -320,
1305
1306  /**
1307   * Error in chunked transfer encoding.
1308   *
1309   * @syscap SystemCapability.Web.Webview.Core
1310   * @atomicservice
1311   * @since 12
1312   */
1313  ERR_INVALID_CHUNKED_ENCODING = -321,
1314
1315  /**
1316   * The server did not support the request method.
1317   *
1318   * @syscap SystemCapability.Web.Webview.Core
1319   * @atomicservice
1320   * @since 12
1321   */
1322  ERR_METHOD_UNSUPPORTED = -322,
1323
1324  /**
1325   * The response was 407 (Proxy Authentication Required,, yet we did not send
1326   * the request to a proxy.
1327   *
1328   * @syscap SystemCapability.Web.Webview.Core
1329   * @atomicservice
1330   * @since 12
1331   */
1332  ERR_UNEXPECTED_PROXY_AUTH = -323,
1333
1334  /**
1335   * The server closed the connection without sending any data.
1336   *
1337   * @syscap SystemCapability.Web.Webview.Core
1338   * @atomicservice
1339   * @since 12
1340   */
1341  ERR_EMPTY_RESPONSE = -324,
1342
1343  /**
1344   * The headers section of the response is too large.
1345   *
1346   * @syscap SystemCapability.Web.Webview.Core
1347   * @atomicservice
1348   * @since 12
1349   */
1350  ERR_RESPONSE_HEADERS_TOO_BIG = -325,
1351
1352  /**
1353   * The evaluation of the PAC script failed.
1354   *
1355   * @syscap SystemCapability.Web.Webview.Core
1356   * @atomicservice
1357   * @since 12
1358   */
1359  ERR_PAC_SCRIPT_FAILED = -327,
1360
1361  /**
1362   * The response was 416 (Requested range not satisfiable, and the server cannot
1363   * satisfy the range requested.
1364   *
1365   * @syscap SystemCapability.Web.Webview.Core
1366   * @atomicservice
1367   * @since 12
1368   */
1369  ERR_REQUEST_RANGE_NOT_SATISFIABLE = -328,
1370
1371  /**
1372   * The identity used for authentication is invalid.
1373   *
1374   * @syscap SystemCapability.Web.Webview.Core
1375   * @atomicservice
1376   * @since 12
1377   */
1378  ERR_MALFORMED_IDENTITY = -329,
1379
1380  /**
1381   * Content decoding of the response body failed.
1382   *
1383   * @syscap SystemCapability.Web.Webview.Core
1384   * @atomicservice
1385   * @since 12
1386   */
1387  ERR_CONTENT_DECODING_FAILED = -330,
1388
1389  /**
1390   * An operation could not be completed because all network IO
1391   * is suspended.
1392   *
1393   * @syscap SystemCapability.Web.Webview.Core
1394   * @atomicservice
1395   * @since 12
1396   */
1397  ERR_NETWORK_IO_SUSPENDED = -331,
1398
1399  /**
1400   * FLIP data received without receiving a SYN_REPLY on the stream.
1401   *
1402   * @syscap SystemCapability.Web.Webview.Core
1403   * @atomicservice
1404   * @since 12
1405   */
1406  ERR_SYN_REPLY_NOT_RECEIVED = -332,
1407
1408  /**
1409   * Converting the response to target encoding failed.
1410   *
1411   * @syscap SystemCapability.Web.Webview.Core
1412   * @atomicservice
1413   * @since 12
1414   */
1415  ERR_ENCODING_CONVERSION_FAILED = -333,
1416
1417  /**
1418   * The server sent an FTP directory listing in a format we do not understand.
1419   *
1420   * @syscap SystemCapability.Web.Webview.Core
1421   * @atomicservice
1422   * @since 12
1423   */
1424  ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT = -334,
1425
1426  /**
1427   * There are no supported proxies in the provided list.
1428   *
1429   * @syscap SystemCapability.Web.Webview.Core
1430   * @atomicservice
1431   * @since 12
1432   */
1433  ERR_NO_SUPPORTED_PROXIES = -336,
1434
1435  /**
1436   * There is an HTTP/2 protocol error.
1437   *
1438   * @syscap SystemCapability.Web.Webview.Core
1439   * @atomicservice
1440   * @since 12
1441   */
1442  ERR_HTTP2_PROTOCOL_ERROR = -337,
1443
1444  /**
1445   * Credentials could not be established during HTTP Authentication.
1446   *
1447   * @syscap SystemCapability.Web.Webview.Core
1448   * @atomicservice
1449   * @since 12
1450   */
1451  ERR_INVALID_AUTH_CREDENTIALS = -338,
1452
1453  /**
1454   * An HTTP Authentication scheme was tried which is not supported on this
1455   * machine.
1456   *
1457   * @syscap SystemCapability.Web.Webview.Core
1458   * @atomicservice
1459   * @since 12
1460   */
1461  ERR_UNSUPPORTED_AUTH_SCHEME = -339,
1462
1463  /**
1464   * Detecting the encoding of the response failed.
1465   *
1466   * @syscap SystemCapability.Web.Webview.Core
1467   * @atomicservice
1468   * @since 12
1469   */
1470  ERR_ENCODING_DETECTION_FAILED = -340,
1471
1472  /**
1473   * (GSSAPI, No Kerberos credentials were available during HTTP Authentication.
1474   *
1475   * @syscap SystemCapability.Web.Webview.Core
1476   * @atomicservice
1477   * @since 12
1478   */
1479  ERR_MISSING_AUTH_CREDENTIALS = -341,
1480
1481  /**
1482   * An unexpected, but documented, SSPI or GSSAPI status code was returned.
1483   *
1484   * @syscap SystemCapability.Web.Webview.Core
1485   * @atomicservice
1486   * @since 12
1487   */
1488  ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS = -342,
1489
1490  /**
1491   * The environment was not set up correctly for authentication (for
1492   * example, no KDC could be found or the principal is unknown.
1493   *
1494   * @syscap SystemCapability.Web.Webview.Core
1495   * @atomicservice
1496   * @since 12
1497   */
1498  ERR_MISCONFIGURED_AUTH_ENVIRONMENT = -343,
1499
1500  /**
1501   * An undocumented SSPI or GSSAPI status code was returned.
1502   *
1503   * @syscap SystemCapability.Web.Webview.Core
1504   * @atomicservice
1505   * @since 12
1506   */
1507  ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS = -344,
1508
1509  /**
1510   * The HTTP response was too big to drain.
1511   *
1512   * @syscap SystemCapability.Web.Webview.Core
1513   * @atomicservice
1514   * @since 12
1515   */
1516  ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN = -345,
1517
1518  /**
1519   * The HTTP response contained multiple distinct Content-Length headers.
1520   *
1521   * @syscap SystemCapability.Web.Webview.Core
1522   * @atomicservice
1523   * @since 12
1524   */
1525  ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH = -346,
1526
1527  /**
1528   * HTTP/2 headers have been received, but not all of them - status or version
1529   * headers are missing, so we're expecting additional frames to complete them.
1530   *
1531   * @syscap SystemCapability.Web.Webview.Core
1532   * @atomicservice
1533   * @since 12
1534   */
1535  ERR_INCOMPLETE_HTTP2_HEADERS = -347,
1536
1537  /**
1538   * No PAC URL configuration could be retrieved from DHCP. This can indicate
1539   * either a failure to retrieve the DHCP configuration, or that there was no
1540   * PAC URL configured in DHCP.
1541   *
1542   * @syscap SystemCapability.Web.Webview.Core
1543   * @atomicservice
1544   * @since 12
1545   */
1546  ERR_PAC_NOT_IN_DHCP = -348,
1547
1548  /**
1549   * The HTTP response contained multiple Content-Disposition headers.
1550   *
1551   * @syscap SystemCapability.Web.Webview.Core
1552   * @atomicservice
1553   * @since 12
1554   */
1555  ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION = -349,
1556
1557  /**
1558   * The HTTP response contained multiple Location headers.
1559   *
1560   * @syscap SystemCapability.Web.Webview.Core
1561   * @atomicservice
1562   * @since 12
1563   */
1564  ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION = -350,
1565
1566  /**
1567   * HTTP/2 server refused the request without processing, and sent either a
1568   * GOAWAY frame with error code NO_ERROR and Last-Stream-ID lower than the
1569   * stream id corresponding to the request indicating that this request has not
1570   * been processed yet, or a RST_STREAM frame with error code REFUSED_STREAM.
1571   * Client MAY retry (on a different connection,.  See RFC7540 Section 8.1.4.
1572   *
1573   * @syscap SystemCapability.Web.Webview.Core
1574   * @atomicservice
1575   * @since 12
1576   */
1577  ERR_HTTP2_SERVER_REFUSED_STREAM = -351,
1578
1579  /**
1580   * HTTP/2 server didn't respond to the PING message.
1581   *
1582   * @syscap SystemCapability.Web.Webview.Core
1583   * @atomicservice
1584   * @since 12
1585   */
1586  ERR_HTTP2_PING_FAILED = -352,
1587
1588  /**
1589   * The HTTP response body transferred fewer bytes than were advertised by the
1590   * Content-Length header when the connection is closed.
1591   *
1592   * @syscap SystemCapability.Web.Webview.Core
1593   * @atomicservice
1594   * @since 12
1595   */
1596  ERR_CONTENT_LENGTH_MISMATCH = -354,
1597
1598  /**
1599   * The HTTP response body is transferred with Chunked-Encoding, but the
1600   * terminating zero-length chunk was never sent when the connection is closed.
1601   *
1602   * @syscap SystemCapability.Web.Webview.Core
1603   * @atomicservice
1604   * @since 12
1605   */
1606  ERR_INCOMPLETE_CHUNKED_ENCODING = -355,
1607
1608  /**
1609   * There is a QUIC protocol error.
1610   *
1611   * @syscap SystemCapability.Web.Webview.Core
1612   * @atomicservice
1613   * @since 12
1614   */
1615  ERR_QUIC_PROTOCOL_ERROR = -356,
1616
1617  /**
1618   * The HTTP headers were truncated by an EOF.
1619   *
1620   * @syscap SystemCapability.Web.Webview.Core
1621   * @atomicservice
1622   * @since 12
1623   */
1624  ERR_RESPONSE_HEADERS_TRUNCATED = -357,
1625  /**
1626   * The QUIC crypto handshake failed.  This means that the server was unable
1627   * to read any requests sent, so they may be resent.
1628   *
1629   * @syscap SystemCapability.Web.Webview.Core
1630   * @atomicservice
1631   * @since 12
1632   */
1633  ERR_QUIC_HANDSHAKE_FAILED = -358,
1634
1635  /**
1636   * Transport security is inadequate for the HTTP/2 version.
1637   *
1638   * @syscap SystemCapability.Web.Webview.Core
1639   * @atomicservice
1640   * @since 12
1641   */
1642  ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY = -360,
1643
1644  /**
1645   * The peer violated HTTP/2 flow control.
1646   *
1647   * @syscap SystemCapability.Web.Webview.Core
1648   * @atomicservice
1649   * @since 12
1650   */
1651  ERR_HTTP2_FLOW_CONTROL_ERROR = -361,
1652
1653  /**
1654   * The peer sent an improperly sized HTTP/2 frame.
1655   *
1656   * @syscap SystemCapability.Web.Webview.Core
1657   * @atomicservice
1658   * @since 12
1659   */
1660  ERR_HTTP2_FRAME_SIZE_ERROR = -362,
1661
1662  /**
1663   * Decoding or encoding of compressed HTTP/2 headers failed.
1664   *
1665   * @syscap SystemCapability.Web.Webview.Core
1666   * @atomicservice
1667   * @since 12
1668   */
1669  ERR_HTTP2_COMPRESSION_ERROR = -363,
1670
1671  /**
1672   * Proxy Auth Requested without a valid Client Socket Handle.
1673   *
1674   * @syscap SystemCapability.Web.Webview.Core
1675   * @atomicservice
1676   * @since 12
1677   */
1678  ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION = -364,
1679
1680  /**
1681   * HTTP_1_1_REQUIRED error code received on HTTP/2 session.
1682   *
1683   * @syscap SystemCapability.Web.Webview.Core
1684   * @atomicservice
1685   * @since 12
1686   */
1687  ERR_HTTP_1_1_REQUIRED = -365,
1688
1689  /**
1690   * HTTP_1_1_REQUIRED error code received on HTTP/2 session to proxy.
1691   *
1692   * @syscap SystemCapability.Web.Webview.Core
1693   * @atomicservice
1694   * @since 12
1695   */
1696  ERR_PROXY_HTTP_1_1_REQUIRED = -366,
1697
1698  /**
1699   * The PAC script terminated fatally and must be reloaded.
1700   *
1701   * @syscap SystemCapability.Web.Webview.Core
1702   * @atomicservice
1703   * @since 12
1704   */
1705  ERR_PAC_SCRIPT_TERMINATED = -367,
1706
1707  /**
1708   * The server was expected to return an HTTP/1.x response, but did not. Rather
1709   * than treat it as HTTP/0.9, this error is returned.
1710   *
1711   * @syscap SystemCapability.Web.Webview.Core
1712   * @atomicservice
1713   * @since 12
1714   */
1715  ERR_INVALID_HTTP_RESPONSE = -370,
1716
1717  /**
1718   * Initializing content decoding failed.
1719   *
1720   * @syscap SystemCapability.Web.Webview.Core
1721   * @atomicservice
1722   * @since 12
1723   */
1724  ERR_CONTENT_DECODING_INIT_FAILED = -371,
1725
1726  /**
1727   * Received HTTP/2 RST_STREAM frame with NO_ERROR error code.  This error should
1728   * be handled internally by HTTP/2 code, and should not make it above the
1729   * SpdyStream layer.
1730   *
1731   * @syscap SystemCapability.Web.Webview.Core
1732   * @atomicservice
1733   * @since 12
1734   */
1735  ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED = -372,
1736
1737  /**
1738   * The pushed stream claimed by the request is no longer available.
1739   *
1740   * @syscap SystemCapability.Web.Webview.Core
1741   * @atomicservice
1742   * @since 12
1743   */
1744  ERR_HTTP2_PUSHED_STREAM_NOT_AVAILABLE = -373,
1745
1746  /**
1747   * A pushed stream was claimed and later reset by the server. When this happens,
1748   * the request should be retried.
1749   *
1750   * @syscap SystemCapability.Web.Webview.Core
1751   * @atomicservice
1752   * @since 12
1753   */
1754  ERR_HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER = -374,
1755
1756  /**
1757   * An HTTP transaction was retried too many times due for authentication or
1758   * invalid certificates.
1759   *
1760   * @syscap SystemCapability.Web.Webview.Core
1761   * @atomicservice
1762   * @since 12
1763   */
1764  ERR_TOO_MANY_RETRIES = -375,
1765
1766  /**
1767   * Received an HTTP/2 frame on a closed stream.
1768   *
1769   * @syscap SystemCapability.Web.Webview.Core
1770   * @atomicservice
1771   * @since 12
1772   */
1773  ERR_HTTP2_STREAM_CLOSED = -376,
1774
1775  /**
1776   * Client is refusing an HTTP/2 stream.
1777   *
1778   * @syscap SystemCapability.Web.Webview.Core
1779   * @atomicservice
1780   * @since 12
1781   */
1782  ERR_HTTP2_CLIENT_REFUSED_STREAM = -377,
1783
1784  /**
1785   * A pushed HTTP/2 stream was claimed by a request based on matching URL and
1786   * request headers, but the pushed response headers do not match the request.
1787   *
1788   * @syscap SystemCapability.Web.Webview.Core
1789   * @atomicservice
1790   * @since 12
1791   */
1792  ERR_HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH = -378,
1793
1794  /**
1795   * The server returned a non-2xx HTTP response code.
1796   *
1797   * @syscap SystemCapability.Web.Webview.Core
1798   * @atomicservice
1799   * @since 12
1800   */
1801  ERR_HTTP_RESPONSE_CODE_FAILURE = -379,
1802
1803  /**
1804   * The certificate presented on a QUIC connection does not chain to a known root
1805   * and the origin connected to is not on a list of domains where unknown roots
1806   * are allowed.
1807   *
1808   * @syscap SystemCapability.Web.Webview.Core
1809   * @atomicservice
1810   * @since 12
1811   */
1812  ERR_QUIC_UNKNOWN_CERT_ROOT = -380,
1813
1814  /**
1815   * A GOAWAY frame has been received indicating that the request has not been
1816   * processed and is therefore safe to retry on a different connection.
1817   *
1818   * @syscap SystemCapability.Web.Webview.Core
1819   * @atomicservice
1820   * @since 12
1821   */
1822  ERR_QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED = -381,
1823
1824  /**
1825   * The ACCEPT_CH restart has been triggered too many times.
1826   *
1827   * @syscap SystemCapability.Web.Webview.Core
1828   * @atomicservice
1829   * @since 12
1830   */
1831  ERR_TOO_MANY_ACCEPT_CH_RESTARTS = -382,
1832
1833  /**
1834   * The IP address space of the remote endpoint differed from the previous
1835   * observed value during the same request. Any cache entry for the affected
1836   * request should be invalidated.
1837   *
1838   * @syscap SystemCapability.Web.Webview.Core
1839   * @atomicservice
1840   * @since 12
1841   */
1842  ERR_INCONSISTENT_IP_ADDRESS_SPACE = -383,
1843
1844  /**
1845   * The IP address space of the cached remote endpoint is blocked by local
1846   * network access check.
1847   *
1848   * @syscap SystemCapability.Web.Webview.Core
1849   * @atomicservice
1850   * @since 12
1851   */
1852  ERR_CACHED_IP_ADDRESS_SPACE_BLOCKED_BY_LOCAL_NETWORK_ACCESS_POLICY = -384,
1853
1854  /**
1855   * The cache does not have the requested entry.
1856   *
1857   * @syscap SystemCapability.Web.Webview.Core
1858   * @atomicservice
1859   * @since 12
1860   */
1861  ERR_CACHE_MISS = -400,
1862
1863  /**
1864   * Unable to read from the disk cache.
1865   *
1866   * @syscap SystemCapability.Web.Webview.Core
1867   * @atomicservice
1868   * @since 12
1869   */
1870  ERR_CACHE_READ_FAILURE = -401,
1871
1872  /**
1873   * Unable to write to the disk cache.
1874   *
1875   * @syscap SystemCapability.Web.Webview.Core
1876   * @atomicservice
1877   * @since 12
1878   */
1879  ERR_CACHE_WRITE_FAILURE = -402,
1880
1881  /**
1882   * The operation is not supported for this entry.
1883   *
1884   * @syscap SystemCapability.Web.Webview.Core
1885   * @atomicservice
1886   * @since 12
1887   */
1888  ERR_CACHE_OPERATION_UNSUPPORTED = -403,
1889
1890  /**
1891   * The disk cache is unable to open this entry.
1892   *
1893   * @syscap SystemCapability.Web.Webview.Core
1894   * @atomicservice
1895   * @since 12
1896   */
1897  ERR_CACHE_OPEN_FAILURE = -404,
1898
1899  /**
1900   * The disk cache is unable to create this entry.
1901   *
1902   * @syscap SystemCapability.Web.Webview.Core
1903   * @atomicservice
1904   * @since 12
1905   */
1906  ERR_CACHE_CREATE_FAILURE = -405,
1907
1908  /**
1909   * Multiple transactions are racing to create disk cache entries.
1910   *
1911   * @syscap SystemCapability.Web.Webview.Core
1912   * @atomicservice
1913   * @since 12
1914   */
1915  ERR_CACHE_RACE = -406,
1916
1917  /**
1918   * The cache was unable to read a checksum record on an entry.
1919   *
1920   * @syscap SystemCapability.Web.Webview.Core
1921   * @atomicservice
1922   * @since 12
1923   */
1924  ERR_CACHE_CHECKSUM_READ_FAILURE = -407,
1925
1926  /**
1927   * The cache found an entry with an invalid checksum.
1928   *
1929   * @syscap SystemCapability.Web.Webview.Core
1930   * @atomicservice
1931   * @since 12
1932   */
1933  ERR_CACHE_CHECKSUM_MISMATCH = -408,
1934
1935  /**
1936   * Internal error code for the HTTP cache.
1937   *
1938   * @syscap SystemCapability.Web.Webview.Core
1939   * @atomicservice
1940   * @since 12
1941   */
1942  ERR_CACHE_LOCK_TIMEOUT = -409,
1943
1944  /**
1945   * Received a challenge after the transaction has read some data, and the
1946   * credentials aren't available.
1947   *
1948   * @syscap SystemCapability.Web.Webview.Core
1949   * @atomicservice
1950   * @since 12
1951   */
1952  ERR_CACHE_AUTH_FAILURE_AFTER_READ = -410,
1953
1954  /**
1955   * Internal not-quite error code for the HTTP cache.
1956   *
1957   * @syscap SystemCapability.Web.Webview.Core
1958   * @atomicservice
1959   * @since 12
1960   */
1961  ERR_CACHE_ENTRY_NOT_SUITABLE = -411,
1962
1963  /**
1964   * The disk cache is unable to doom this entry.
1965   *
1966   * @syscap SystemCapability.Web.Webview.Core
1967   * @atomicservice
1968   * @since 12
1969   */
1970  ERR_CACHE_DOOM_FAILURE = -412,
1971
1972  /**
1973   * The disk cache is unable to open or create this entry.
1974   *
1975   * @syscap SystemCapability.Web.Webview.Core
1976   * @atomicservice
1977   * @since 12
1978   */
1979  ERR_CACHE_OPEN_OR_CREATE_FAILURE = -413,
1980
1981  /**
1982   * The server's response was insecure (e.g. there was a cert error,.
1983   *
1984   * @syscap SystemCapability.Web.Webview.Core
1985   * @atomicservice
1986   * @since 12
1987   */
1988  ERR_INSECURE_RESPONSE = -501,
1989
1990  /**
1991   * An attempt to import a client certificate failed, as the user's key
1992   * database lacked a corresponding private key.
1993   *
1994   * @syscap SystemCapability.Web.Webview.Core
1995   * @atomicservice
1996   * @since 12
1997   */
1998  ERR_NO_PRIVATE_KEY_FOR_CERT = -502,
1999
2000  /**
2001   * An error adding a certificate to the OS certificate database.
2002   *
2003   * @syscap SystemCapability.Web.Webview.Core
2004   * @atomicservice
2005   * @since 12
2006   */
2007  ERR_ADD_USER_CERT_FAILED = -503,
2008
2009  /**
2010   * An error occurred while handling a signed exchange.
2011   *
2012   * @syscap SystemCapability.Web.Webview.Core
2013   * @atomicservice
2014   * @since 12
2015   */
2016  ERR_INVALID_SIGNED_EXCHANGE = -504,
2017
2018  /**
2019   * An error occurred while handling a Web Bundle source.
2020   *
2021   * @syscap SystemCapability.Web.Webview.Core
2022   * @atomicservice
2023   * @since 12
2024   */
2025  ERR_INVALID_WEB_BUNDLE = -505,
2026
2027  /**
2028   * A Trust Tokens protocol operation-executing request failed for one of a
2029   * number of reasons (precondition failure, internal error, bad response,.
2030   *
2031   * @syscap SystemCapability.Web.Webview.Core
2032   * @atomicservice
2033   * @since 12
2034   */
2035  ERR_TRUST_TOKEN_OPERATION_FAILED = -506,
2036
2037  /**
2038   * When handling a Trust Tokens protocol operation-executing request, the system
2039   * was able to execute the request's Trust Tokens operation without sending the
2040   * request to its destination.
2041   *
2042   * @syscap SystemCapability.Web.Webview.Core
2043   * @atomicservice
2044   * @since 12
2045   */
2046  ERR_TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST = -507,
2047
2048  /**
2049   * A generic error for failed FTP control connection command.
2050   * If possible, please use or add a more specific error code.
2051   *
2052   * @syscap SystemCapability.Web.Webview.Core
2053   * @atomicservice
2054   * @since 12
2055   */
2056  ERR_FTP_FAILED = -601,
2057
2058  /**
2059   * The server cannot fulfill the request at this point. This is a temporary error.
2060   * FTP response code 421.
2061   *
2062   * @syscap SystemCapability.Web.Webview.Core
2063   * @atomicservice
2064   * @since 12
2065   */
2066  ERR_FTP_SERVICE_UNAVAILABLE = -602,
2067
2068  /**
2069   * The server has aborted the transfer.
2070   * FTP response code 426.
2071   *
2072   * @syscap SystemCapability.Web.Webview.Core
2073   * @atomicservice
2074   * @since 12
2075   */
2076  ERR_FTP_TRANSFER_ABORTED = -603,
2077
2078  /**
2079   * The file is busy, or some other temporary error condition on opening the file.
2080   * FTP response code 450.
2081   *
2082   * @syscap SystemCapability.Web.Webview.Core
2083   * @atomicservice
2084   * @since 12
2085   */
2086  ERR_FTP_FILE_BUSY = -604,
2087
2088  /**
2089   * Server rejected our command because of syntax errors.
2090   * FTP response codes 500, 501.
2091   *
2092   * @syscap SystemCapability.Web.Webview.Core
2093   * @atomicservice
2094   * @since 12
2095   */
2096  ERR_FTP_SYNTAX_ERROR = -605,
2097
2098  /**
2099   * Server does not support the command we issued.
2100   * FTP response codes 502, 504.
2101   *
2102   * @syscap SystemCapability.Web.Webview.Core
2103   * @atomicservice
2104   * @since 12
2105   */
2106  ERR_FTP_COMMAND_UNSUPPORTED = -606,
2107
2108  /**
2109   * Server rejected our command because we didn't issue the commands in right order.
2110   * FTP response code 503.
2111   *
2112   * @syscap SystemCapability.Web.Webview.Core
2113   * @atomicservice
2114   * @since 12
2115   */
2116  ERR_FTP_BAD_COMMAND_SEQUENCE = -607,
2117
2118  /**
2119   * PKCS #12 import failed due to incorrect password.
2120   *
2121   * @syscap SystemCapability.Web.Webview.Core
2122   * @atomicservice
2123   * @since 12
2124   */
2125  ERR_PKCS12_IMPORT_BAD_PASSWORD = -701,
2126
2127  /**
2128   * PKCS #12 import failed due to other error.
2129   *
2130   * @syscap SystemCapability.Web.Webview.Core
2131   * @atomicservice
2132   * @since 12
2133   */
2134  ERR_PKCS12_IMPORT_FAILED = -702,
2135
2136  /**
2137   * CA import failed - not a CA cert.
2138   *
2139   * @syscap SystemCapability.Web.Webview.Core
2140   * @atomicservice
2141   * @since 12
2142   */
2143  ERR_IMPORT_CA_CERT_NOT_CA = -703,
2144
2145  /**
2146   * Import failed - certificate already exists in database.
2147   *
2148   * @syscap SystemCapability.Web.Webview.Core
2149   * @atomicservice
2150   * @since 12
2151   */
2152  ERR_IMPORT_CERT_ALREADY_EXISTS = -704,
2153
2154  /**
2155   * CA import failed due to some other error.
2156   *
2157   * @syscap SystemCapability.Web.Webview.Core
2158   * @atomicservice
2159   * @since 12
2160   */
2161  ERR_IMPORT_CA_CERT_FAILED = -705,
2162
2163  /**
2164   * Server certificate import failed due to some internal error.
2165   *
2166   * @syscap SystemCapability.Web.Webview.Core
2167   * @atomicservice
2168   * @since 12
2169   */
2170  ERR_IMPORT_SERVER_CERT_FAILED = -706,
2171
2172  /**
2173   * PKCS #12 import failed due to invalid MAC.
2174   *
2175   * @syscap SystemCapability.Web.Webview.Core
2176   * @atomicservice
2177   * @since 12
2178   */
2179  ERR_PKCS12_IMPORT_INVALID_MAC = -707,
2180
2181  /**
2182   * PKCS #12 import failed due to invalid/corrupt file.
2183   *
2184   * @syscap SystemCapability.Web.Webview.Core
2185   * @atomicservice
2186   * @since 12
2187   */
2188  ERR_PKCS12_IMPORT_INVALID_FILE = -708,
2189
2190  /**
2191   * PKCS #12 import failed due to unsupported features.
2192   *
2193   * @syscap SystemCapability.Web.Webview.Core
2194   * @atomicservice
2195   * @since 12
2196   */
2197  ERR_PKCS12_IMPORT_UNSUPPORTED = -709,
2198
2199  /**
2200   * Key generation failed.
2201   *
2202   * @syscap SystemCapability.Web.Webview.Core
2203   * @atomicservice
2204   * @since 12
2205   */
2206  ERR_KEY_GENERATION_FAILED = -710,
2207
2208  /**
2209   * Failure to export private key.
2210   *
2211   * @syscap SystemCapability.Web.Webview.Core
2212   * @atomicservice
2213   * @since 12
2214   */
2215  ERR_PRIVATE_KEY_EXPORT_FAILED = -712,
2216
2217  /**
2218   * Self-signed certificate generation failed.
2219   *
2220   * @syscap SystemCapability.Web.Webview.Core
2221   * @atomicservice
2222   * @since 12
2223   */
2224  ERR_SELF_SIGNED_CERT_GENERATION_FAILED = -713,
2225
2226  /**
2227   * The certificate database changed in some way.
2228   *
2229   * @syscap SystemCapability.Web.Webview.Core
2230   * @atomicservice
2231   * @since 12
2232   */
2233  ERR_CERT_DATABASE_CHANGED = -714,
2234
2235  /**
2236   * The certificate verifier configuration changed in some way.
2237   *
2238   * @syscap SystemCapability.Web.Webview.Core
2239   * @atomicservice
2240   * @since 12
2241   */
2242  ERR_CERT_VERIFIER_CHANGED = -716,
2243
2244  /**
2245   * DNS resolver received a malformed response.
2246   *
2247   * @syscap SystemCapability.Web.Webview.Core
2248   * @atomicservice
2249   * @since 12
2250   */
2251  ERR_DNS_MALFORMED_RESPONSE = -800,
2252
2253  /**
2254   * DNS server requires TCP.
2255   *
2256   * @syscap SystemCapability.Web.Webview.Core
2257   * @atomicservice
2258   * @since 12
2259   */
2260  ERR_DNS_SERVER_REQUIRES_TCP = -801,
2261
2262  /**
2263   * DNS server failed.  This error is returned for all of the following
2264   * error conditions:
2265   * 1 - Format error - The name server was unable to interpret the query.
2266   * 2 - Server failure - The name server was unable to process this query
2267   *     due to a problem with the name server.
2268   * 4 - Not Implemented - The name server does not support the requested
2269   *     kind of query.
2270   * 5 - Refused - The name server refuses to perform the specified
2271   *     operation for policy reasons.
2272   *
2273   * @syscap SystemCapability.Web.Webview.Core
2274   * @atomicservice
2275   * @since 12
2276   */
2277  ERR_DNS_SERVER_FAILED = -802,
2278  /**
2279   * DNS transaction timed out.
2280   *
2281   * @syscap SystemCapability.Web.Webview.Core
2282   * @atomicservice
2283   * @since 12
2284   */
2285  ERR_DNS_TIMED_OUT = -803,
2286
2287  /**
2288   * The entry was not found in cache or other local sources, for lookups where
2289   * only local sources were queried.
2290   *
2291   * @syscap SystemCapability.Web.Webview.Core
2292   * @atomicservice
2293   * @since 12
2294   */
2295  ERR_DNS_CACHE_MISS = -804,
2296
2297  /**
2298   * Suffix search list rules prevent resolution of the given host name.
2299   *
2300   * @syscap SystemCapability.Web.Webview.Core
2301   * @atomicservice
2302   * @since 12
2303   */
2304  ERR_DNS_SEARCH_EMPTY = -805,
2305
2306  /**
2307   * Failed to sort addresses according to RFC3484.
2308   *
2309   * @syscap SystemCapability.Web.Webview.Core
2310   * @atomicservice
2311   * @since 12
2312   */
2313  ERR_DNS_SORT_ERROR = -806,
2314
2315  /**
2316   * Failed to resolve the hostname of a DNS-over-HTTPS server.
2317   *
2318   * @syscap SystemCapability.Web.Webview.Core
2319   * @atomicservice
2320   * @since 12
2321   */
2322  ERR_DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED = -808,
2323
2324  /**
2325   * DNS identified the request as disallowed for insecure connection (http/ws,.
2326   * Error should be handled as if an HTTP redirect was received to redirect to
2327   * https or wss.
2328   *
2329   * @syscap SystemCapability.Web.Webview.Core
2330   * @atomicservice
2331   * @since 12
2332   */
2333  ERR_DNS_NAME_HTTPS_ONLY = -809,
2334
2335  /**
2336   * All DNS requests associated with this job have been cancelled.
2337   *
2338   * @syscap SystemCapability.Web.Webview.Core
2339   * @atomicservice
2340   * @since 12
2341   */
2342  ERR_DNS_REQUEST_CANCELED = -810,
2343
2344  /**
2345   * The hostname resolution of HTTPS record was expected to be resolved with
2346   * alpn values of supported protocols, but did not.
2347   *
2348   * @syscap SystemCapability.Web.Webview.Core
2349   * @atomicservice
2350   * @since 12
2351   */
2352  ERR_DNS_NO_MATCHING_SUPPORTED_ALPN = -811,
2353}