• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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  * @addtogroup Web
18  * @{
19  *
20  * @brief Provides APIs for the ArkWeb net errors.
21  * @since 12
22  */
23 /**
24  * @file arkweb_net_error_list.h
25  *
26  * @brief Declares the APIs for the ArkWeb net errors.
27  * @library libohweb.so
28  * @syscap SystemCapability.Web.Webview.Core
29  * @since 12
30  */
31 #ifndef ARKWEB_NET_ERROR_LIST_H
32 #define ARKWEB_NET_ERROR_LIST_H
33 
34 enum ArkWeb_NetError {
35     /*
36      * @brief Unknown error.
37      *
38      * @syscap SystemCapability.Web.Webview.Core
39      * @since 12
40      */
41     ARKWEB_NET_UNKNOWN = 1,
42 
43     /*
44      * @brief Normal.
45      *
46      * @syscap SystemCapability.Web.Webview.Core
47      * @since 12
48      */
49     ARKWEB_NET_OK = 0,
50 
51     /*
52      * @brief An asynchronous IO operation is not yet complete.  This usually does not
53      *        indicate a fatal error.  Typically this error will be generated as a
54      *        notification to wait for some external notification that the IO operation
55      *        finally completed.
56      *
57      * @syscap SystemCapability.Web.Webview.Core
58      * @since 12
59      */
60     ARKWEB_ERR_IO_PENDING = -1,
61 
62     /*
63      * @brief A generic failure occurred.
64      *
65      * @syscap SystemCapability.Web.Webview.Core
66      * @since 12
67      */
68     ARKWEB_ERR_FAILED = -2,
69 
70     /*
71      * @brief An operation was aborted.
72      *
73      * @syscap SystemCapability.Web.Webview.Core
74      * @since 12
75      */
76     ARKWEB_ERR_ABORTED = -3,
77 
78     /*
79      * @brief An argument to the function is incorrect.
80      *
81      * @syscap SystemCapability.Web.Webview.Core
82      * @since 12
83      */
84     ARKWEB_ERR_INVALID_ARGUMENT = -4,
85 
86     /*
87      * @brief The handle or file descriptor is invalid.
88      *
89      * @syscap SystemCapability.Web.Webview.Core
90      * @since 12
91      */
92     ARKWEB_ERR_INVALID_HANDLE = -5,
93 
94     /*
95      * @brief The file or directory cannot be found.
96      *
97      * @syscap SystemCapability.Web.Webview.Core
98      * @since 12
99      */
100     ARKWEB_ERR_FILE_NOT_FOUND = -6,
101 
102     /*
103      * @brief An operation timed out.
104      *
105      * @syscap SystemCapability.Web.Webview.Core
106      * @since 12
107      */
108     ARKWEB_ERR_TIMED_OUT = -7,
109 
110     /*
111      * @brief The file is too large.
112      *
113      * @syscap SystemCapability.Web.Webview.Core
114      * @since 12
115      */
116     ARKWEB_ERR_FILE_TOO_LARGE = -8,
117 
118     /*
119      * @brief An unexpected error.  This may be caused by a programming mistake or an
120      *        invalid assumption.
121      *
122      * @syscap SystemCapability.Web.Webview.Core
123      * @since 12
124      */
125     ARKWEB_ERR_UNEXPECTED = -9,
126 
127     /*
128      * @brief Permission to access a resource, other than the network, was denied.
129      *
130      * @syscap SystemCapability.Web.Webview.Core
131      * @since 12
132      */
133     ARKWEB_ERR_ACCESS_DENIED = -10,
134 
135     /*
136      * @brief The operation failed because of unimplemented functionality.
137      *
138      * @syscap SystemCapability.Web.Webview.Core
139      * @since 12
140      */
141     ARKWEB_ERR_NOT_IMPLEMENTED = -11,
142 
143     /*
144      * @brief There were not enough resources to complete the operation.
145      *
146      * @syscap SystemCapability.Web.Webview.Core
147      * @since 12
148      */
149     ARKWEB_ERR_INSUFFICIENT_RESOURCES = -12,
150 
151     /*
152      * @brief Memory allocation failed.
153      *
154      * @syscap SystemCapability.Web.Webview.Core
155      * @since 12
156      */
157     ARKWEB_ERR_OUT_OF_MEMORY = -13,
158 
159     /*
160      * @brief The file upload failed because the file's modification time was different
161      *        from the expectation.
162      *
163      * @syscap SystemCapability.Web.Webview.Core
164      * @since 12
165      */
166     ARKWEB_ERR_UPLOAD_FILE_CHANGED = -14,
167 
168     /*
169      * @brief The socket is not connected.
170      *
171      * @syscap SystemCapability.Web.Webview.Core
172      * @since 12
173      */
174     ARKWEB_ERR_SOCKET_NOT_CONNECTED = -15,
175 
176     /*
177      * @brief The file already exists.
178      *
179      * @syscap SystemCapability.Web.Webview.Core
180      * @since 12
181      */
182     ARKWEB_ERR_FILE_EXISTS = -16,
183 
184     /*
185      * @brief The path or file name is too long.
186      *
187      * @syscap SystemCapability.Web.Webview.Core
188      * @since 12
189      */
190     ARKWEB_ERR_FILE_PATH_TOO_LONG = -17,
191 
192     /*
193      * @brief Not enough room left on the disk.
194      *
195      * @syscap SystemCapability.Web.Webview.Core
196      * @since 12
197      */
198     ARKWEB_ERR_FILE_NO_SPACE = -18,
199 
200     /*
201      * @brief The file has a virus.
202      *
203      * @syscap SystemCapability.Web.Webview.Core
204      * @since 12
205      */
206     ARKWEB_ERR_FILE_VIRUS_INFECTED = -19,
207 
208     /*
209      * @brief The client chose to block the request.
210      *
211      * @syscap SystemCapability.Web.Webview.Core
212      * @since 12
213      */
214     ARKWEB_ERR_BLOCKED_BY_CLIENT = -20,
215 
216     /*
217      * @brief The network changed.
218      *
219      * @syscap SystemCapability.Web.Webview.Core
220      * @since 12
221      */
222     ARKWEB_ERR_NETWORK_CHANGED = -21,
223 
224     /*
225      * @brief The request was blocked by the URL block list configured by the domain
226      *        administrator.
227      *
228      * @syscap SystemCapability.Web.Webview.Core
229      * @since 12
230      */
231     ARKWEB_ERR_BLOCKED_BY_ADMINISTRATOR = -22,
232 
233     /*
234      * @brief The socket is already connected.
235      *
236      * @syscap SystemCapability.Web.Webview.Core
237      * @since 12
238      */
239     ARKWEB_ERR_SOCKET_CONNECTED = -23,
240 
241     /*
242      * @brief The upload failed because the upload stream needed to be re-read, due to a
243      *        retry or a redirect, but the upload stream doesn't support that operation.
244      *
245      * @syscap SystemCapability.Web.Webview.Core
246      * @since 12
247      */
248     ARKWEB_ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED = -25,
249 
250     /*
251      * @brief The request failed because the URLRequestContext is shutting down, or has
252      *        been shut down.
253      *
254      * @syscap SystemCapability.Web.Webview.Core
255      * @since 12
256      */
257     ARKWEB_ERR_CONTEXT_SHUT_DOWN = -26,
258 
259     /*
260      * @brief The request failed because the response was delivered along with requirements
261      *        which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor
262      *        checks and 'Cross-Origin-Resource-Policy' for instance,.
263      *
264      * @syscap SystemCapability.Web.Webview.Core
265      * @since 12
266      */
267     ARKWEB_ERR_BLOCKED_BY_RESPONSE = -27,
268 
269     /*
270      * @brief The request was blocked by system policy disallowing some or all cleartext
271      *        requests.
272      *
273      * @syscap SystemCapability.Web.Webview.Core
274      * @since 12
275      */
276     ARKWEB_ERR_CLEARTEXT_NOT_PERMITTED = -29,
277 
278     /*
279      * @brief The request was blocked by a Content Security Policy.
280      *
281      * @syscap SystemCapability.Web.Webview.Core
282      * @since 12
283      */
284     ARKWEB_ERR_BLOCKED_BY_CSP = -30,
285 
286     /*
287      * @brief The request was blocked because of no H/2 or QUIC session.
288      *
289      * @syscap SystemCapability.Web.Webview.Core
290      * @since 12
291      */
292     ARKWEB_ERR_H2_OR_QUIC_REQUIRED = -31,
293 
294     /*
295      * @brief The request was blocked by CORB or ORB.
296      *
297      * @syscap SystemCapability.Web.Webview.Core
298      * @since 12
299      */
300     ARKWEB_ERR_BLOCKED_BY_ORB = -32,
301 
302     /*
303      * @brief A connection was closed (corresponding to a TCP FIN,.
304      *
305      * @syscap SystemCapability.Web.Webview.Core
306      * @since 12
307      */
308     ARKWEB_ERR_CONNECTION_CLOSED = -100,
309 
310     /*
311      * @brief A connection was reset (corresponding to a TCP RST,.
312      *
313      * @syscap SystemCapability.Web.Webview.Core
314      * @since 12
315      */
316     ARKWEB_ERR_CONNECTION_RESET = -101,
317 
318     /*
319      * @brief A connection attempt was refused.
320      *
321      * @syscap SystemCapability.Web.Webview.Core
322      * @since 12
323      */
324     ARKWEB_ERR_CONNECTION_REFUSED = -102,
325 
326     /*
327      * @brief A connection timed out as a result of not receiving an ACK for data sent.
328      *        This can include a FIN packet that did not get ACK'd.
329      *
330      * @syscap SystemCapability.Web.Webview.Core
331      * @since 12
332      */
333     ARKWEB_ERR_CONNECTION_ABORTED = -103,
334 
335     /*
336      * @brief A connection attempt failed.
337      *
338      * @syscap SystemCapability.Web.Webview.Core
339      * @since 12
340      */
341     ARKWEB_ERR_CONNECTION_FAILED = -104,
342 
343     /*
344      * @brief The host name could not be resolved.
345      *
346      * @syscap SystemCapability.Web.Webview.Core
347      * @since 12
348      */
349     ARKWEB_ERR_NAME_NOT_RESOLVED = -105,
350 
351     /*
352      * @brief The Internet connection has been lost.
353      *
354      * @syscap SystemCapability.Web.Webview.Core
355      * @since 12
356      */
357     ARKWEB_ERR_INTERNET_DISCONNECTED = -106,
358 
359     /*
360      * @brief An SSL protocol error occurred.
361      *
362      * @syscap SystemCapability.Web.Webview.Core
363      * @since 12
364      */
365     ARKWEB_ERR_SSL_PROTOCOL_ERROR = -107,
366 
367     /*
368      * @brief The IP address or port number is invalid (e.g., cannot connect to the IP
369      *        address 0 or the port 0,.
370      *
371      * @syscap SystemCapability.Web.Webview.Core
372      * @since 12
373      */
374     ARKWEB_ERR_ADDRESS_INVALID = -108,
375 
376     /*
377      * @brief The IP address is unreachable.  This usually means that there is no route to
378      *        the specified host or network.
379      *
380      * @syscap SystemCapability.Web.Webview.Core
381      * @since 12
382      */
383     ARKWEB_ERR_ADDRESS_UNREACHABLE = -109,
384 
385     /*
386      * @brief The server requested a client certificate for SSL client authentication.
387      *
388      * @syscap SystemCapability.Web.Webview.Core
389      * @since 12
390      */
391     ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_NEEDED = -110,
392 
393     /*
394      * @brief A tunnel connection through the proxy could not be established.
395      *
396      * @syscap SystemCapability.Web.Webview.Core
397      * @since 12
398      */
399     ARKWEB_ERR_TUNNEL_CONNECTION_FAILED = -111,
400 
401     /*
402      * @brief No SSL protocol versions are enabled.
403      *
404      * @syscap SystemCapability.Web.Webview.Core
405      * @since 12
406      */
407     ARKWEB_ERR_NO_SSL_VERSIONS_ENABLED = -112,
408 
409     /*
410      * @brief The client and server don't support a common SSL protocol version or
411      *        cipher suite.
412      *
413      * @syscap SystemCapability.Web.Webview.Core
414      * @since 12
415      */
416     ARKWEB_ERR_SSL_VERSION_OR_CIPHER_MISMATCH = -113,
417 
418     /*
419      * @brief The server requested a renegotiation (rehandshake,.
420      *
421      * @syscap SystemCapability.Web.Webview.Core
422      * @since 12
423      */
424     ARKWEB_ERR_SSL_RENEGOTIATION_REQUESTED = -114,
425 
426     /*
427      * @brief The proxy requested authentication (for tunnel establishment, with an
428      *        unsupported method.
429      *
430      * @syscap SystemCapability.Web.Webview.Core
431      * @since 12
432      */
433     ARKWEB_ERR_PROXY_AUTH_UNSUPPORTED = -115,
434 
435     /*
436      * @brief The SSL handshake failed because of a bad or missing client certificate.
437      *
438      * @syscap SystemCapability.Web.Webview.Core
439      * @since 12
440      */
441     ARKWEB_ERR_BAD_SSL_CLIENT_AUTH_CERT = -117,
442 
443     /*
444      * @brief A connection attempt timed out.
445      *
446      * @syscap SystemCapability.Web.Webview.Core
447      * @since 12
448      */
449     ARKWEB_ERR_CONNECTION_TIMED_OUT = -118,
450 
451     /*
452      * @brief There are too many pending DNS resolves, so a request in the queue was
453      *        aborted.
454      *
455      * @syscap SystemCapability.Web.Webview.Core
456      * @since 12
457      */
458     ARKWEB_ERR_HOST_RESOLVER_QUEUE_TOO_LARGE = -119,
459 
460     /*
461      * @brief Failed establishing a connection to the SOCKS proxy server for a target host.
462      *
463      * @syscap SystemCapability.Web.Webview.Core
464      * @since 12
465      */
466     ARKWEB_ERR_SOCKS_CONNECTION_FAILED = -120,
467 
468     /*
469      * @brief The SOCKS proxy server failed establishing connection to the target host
470      *        because that host is unreachable.
471      *
472      * @syscap SystemCapability.Web.Webview.Core
473      * @since 12
474      */
475     ARKWEB_ERR_SOCKS_CONNECTION_HOST_UNREACHABLE = -121,
476 
477     /*
478      * @brief The request to negotiate an alternate protocol failed.
479      *
480      * @syscap SystemCapability.Web.Webview.Core
481      * @since 12
482      */
483     ARKWEB_ERR_ALPN_NEGOTIATION_FAILED = -122,
484 
485     /*
486      * @brief The peer sent an SSL no_renegotiation alert message.
487      *
488      * @syscap SystemCapability.Web.Webview.Core
489      * @since 12
490      */
491     ARKWEB_ERR_SSL_NO_RENEGOTIATION = -123,
492 
493     /*
494      * @brief Winsock sometimes reports more data written than passed.  This is probably
495      *        due to a broken LSP.
496      *
497      * @syscap SystemCapability.Web.Webview.Core
498      * @since 12
499      */
500     ARKWEB_ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES = -124,
501 
502     /*
503      * @brief An SSL peer sent us a fatal decompression_failure alert. This typically
504      *        occurs when a peer selects DEFLATE compression in the mistaken belief that
505      *        it supports it.
506      *
507      * @syscap SystemCapability.Web.Webview.Core
508      * @since 12
509      */
510     ARKWEB_ERR_SSL_DECOMPRESSION_FAILURE_ALERT = -125,
511 
512     /*
513      * @brief An SSL peer sent us a fatal bad_record_mac alert. This has been observed
514      *        from servers with buggy DEFLATE support.
515      *
516      * @syscap SystemCapability.Web.Webview.Core
517      * @since 12
518      */
519     ARKWEB_ERR_SSL_BAD_RECORD_MAC_ALERT = -126,
520 
521     /*
522      * @brief The proxy requested authentication (for tunnel establishment,.
523      *
524      * @syscap SystemCapability.Web.Webview.Core
525      * @since 12
526      */
527     ARKWEB_ERR_PROXY_AUTH_REQUESTED = -127,
528 
529     /*
530      * @brief Could not create a connection to the proxy server. An error occurred
531      *        either in resolving its name, or in connecting a socket to it.
532      *        Note that this does NOT include failures during the actual "CONNECT" method
533      *        of an HTTP proxy.
534      *
535      * @syscap SystemCapability.Web.Webview.Core
536      * @since 12
537      */
538     ARKWEB_ERR_PROXY_CONNECTION_FAILED = -130,
539 
540     /*
541      * @brief A mandatory proxy configuration could not be used. Currently this means
542      *        that a mandatory PAC script could not be fetched, parsed or executed.
543      *
544      * @syscap SystemCapability.Web.Webview.Core
545      * @since 12
546      */
547     ARKWEB_ERR_MANDATORY_PROXY_CONFIGURATION_FAILED = -131,
548 
549     /*
550      * @brief We've hit the max socket limit for the socket pool while preconnecting.  We
551      *        don't bother trying to preconnect more sockets.
552      *
553      * @syscap SystemCapability.Web.Webview.Core
554      * @since 12
555      */
556     ARKWEB_ERR_PRECONNECT_MAX_SOCKET_LIMIT = -133,
557 
558     /*
559      * @brief The permission to use the SSL client certificate's private key was denied.
560      *
561      * @syscap SystemCapability.Web.Webview.Core
562      * @since 12
563      */
564     ARKWEB_ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED = -134,
565 
566     /*
567      * @brief The SSL client certificate has no private key.
568      *
569      * @syscap SystemCapability.Web.Webview.Core
570      * @since 12
571      */
572     ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY = -135,
573 
574     /*
575      * @brief The certificate presented by the HTTPS Proxy was invalid.
576      *
577      * @syscap SystemCapability.Web.Webview.Core
578      * @since 12
579      */
580     ARKWEB_ERR_PROXY_CERTIFICATE_INVALID = -136,
581 
582     /*
583      * @brief An error occurred when trying to do a name resolution (DNS,.
584      *
585      * @syscap SystemCapability.Web.Webview.Core
586      * @since 12
587      */
588     ARKWEB_ERR_NAME_RESOLUTION_FAILED = -137,
589 
590     /*
591      * @brief Permission to access the network was denied. This is used to distinguish
592      *        errors that were most likely caused by a firewall from other access denied
593      *        errors. See also ERR_ACCESS_DENIED.
594      *
595      * @syscap SystemCapability.Web.Webview.Core
596      * @since 12
597      */
598     ARKWEB_ERR_NETWORK_ACCESS_DENIED = -138,
599 
600     /*
601      * @brief The request throttler module cancelled this request to avoid DDOS.
602      *
603      * @syscap SystemCapability.Web.Webview.Core
604      * @since 12
605      */
606     ARKWEB_ERR_TEMPORARILY_THROTTLED = -139,
607 
608     /*
609      * @brief A request to create an SSL tunnel connection through the HTTPS proxy
610      *        received a 302 (temporary redirect, response.  The response body might
611      *        include a description of why the request failed.
612      *
613      * @syscap SystemCapability.Web.Webview.Core
614      * @since 12
615      */
616     ARKWEB_ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT = -140,
617 
618     /*
619      * @brief We were unable to sign the CertificateVerify data of an SSL client auth
620      *        handshake with the client certificate's private key.
621      *        Possible causes for this include the user implicitly or explicitly
622      *        denying access to the private key, the private key may not be valid for
623      *        signing, the key may be relying on a cached handle which is no longer
624      *        valid, or the CSP won't allow arbitrary data to be signed.
625      *
626      * @syscap SystemCapability.Web.Webview.Core
627      * @since 12
628      */
629     ARKWEB_ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED = -141,
630 
631     /*
632      * @brief The message was too large for the transport.  (for example a UDP message
633      *        which exceeds size threshold,.
634      *
635      * @syscap SystemCapability.Web.Webview.Core
636      * @since 12
637      */
638     ARKWEB_ERR_MSG_TOO_BIG = -142,
639 
640     /*
641      * @brief Websocket protocol error. Indicates that we are terminating the connection
642      *        due to a malformed frame or other protocol violation.
643      *
644      * @syscap SystemCapability.Web.Webview.Core
645      * @since 12
646      */
647     ARKWEB_ERR_WS_PROTOCOL_ERROR = -145,
648 
649     /*
650      * @brief Returned when attempting to bind an address that is already in use.
651      *
652      * @syscap SystemCapability.Web.Webview.Core
653      * @since 12
654      */
655     ARKWEB_ERR_ADDRESS_IN_USE = -147,
656 
657     /*
658      * @brief An operation failed because the SSL handshake has not completed.
659      *
660      * @syscap SystemCapability.Web.Webview.Core
661      * @since 12
662      */
663     ARKWEB_ERR_SSL_HANDSHAKE_NOT_COMPLETED = -148,
664 
665     /*
666      * @brief SSL peer's public key is invalid.
667      *
668      * @syscap SystemCapability.Web.Webview.Core
669      * @since 12
670      */
671     ARKWEB_ERR_SSL_BAD_PEER_PUBLIC_KEY = -149,
672 
673     /*
674      * @brief The certificate didn't match the built-in public key pins for the host name.
675      *        The pins are set in net/http/transport_security_state.cc and require that
676      *        one of a set of public keys exist on the path from the leaf to the root.
677      *
678      * @syscap SystemCapability.Web.Webview.Core
679      * @since 12
680      */
681     ARKWEB_ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN = -150,
682 
683     /*
684      * @brief Server request for client certificate did not contain any types we support.
685      *
686      * @syscap SystemCapability.Web.Webview.Core
687      * @since 12
688      */
689     ARKWEB_ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED = -151,
690 
691     /*
692      * @brief An SSL peer sent us a fatal decrypt_error alert. This typically occurs when
693      *        a peer could not correctly verify a signature (in CertificateVerify or
694      *        ServerKeyExchange, or validate a Finished message.
695      *
696      * @syscap SystemCapability.Web.Webview.Core
697      * @since 12
698      */
699     ARKWEB_ERR_SSL_DECRYPT_ERROR_ALERT = -153,
700 
701     /*
702      * @brief There are too many pending WebSocketJob instances, so the new job was not
703      *        pushed to the queue.
704      *
705      * @syscap SystemCapability.Web.Webview.Core
706      * @since 12
707      */
708     ARKWEB_ERR_WS_THROTTLE_QUEUE_TOO_LARGE = -154,
709 
710     /*
711      * @brief The SSL server certificate changed in a renegotiation.
712      *
713      * @syscap SystemCapability.Web.Webview.Core
714      * @since 12
715      */
716     ARKWEB_ERR_SSL_SERVER_CERT_CHANGED = -156,
717 
718     /*
719      * @brief The SSL server sent us a fatal unrecognized_name alert.
720      *
721      * @syscap SystemCapability.Web.Webview.Core
722      * @since 12
723      */
724     ARKWEB_ERR_SSL_UNRECOGNIZED_NAME_ALERT = -159,
725 
726     /*
727      * @brief Failed to set the socket's receive buffer size as requested.
728      *
729      * @syscap SystemCapability.Web.Webview.Core
730      * @since 12
731      */
732     ARKWEB_ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR = -160,
733 
734     /*
735      * @brief Failed to set the socket's send buffer size as requested.
736      *
737      * @syscap SystemCapability.Web.Webview.Core
738      * @since 12
739      */
740     ARKWEB_ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR = -161,
741 
742     /*
743      * @brief Failed to set the socket's receive buffer size as requested, despite success
744      *        return code from setsockopt.
745      *
746      * @syscap SystemCapability.Web.Webview.Core
747      * @since 12
748      */
749     ARKWEB_ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE = -162,
750 
751     /*
752      * @brief Failed to set the socket's send buffer size as requested, despite success
753      *        return code from setsockopt.
754      *
755      * @syscap SystemCapability.Web.Webview.Core
756      * @since 12
757      */
758     ARKWEB_ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE = -163,
759 
760     /*
761      * @brief Failed to import a client certificate from the platform store into the SSL
762      *        library.
763      *
764      * @syscap SystemCapability.Web.Webview.Core
765      * @since 12
766      */
767     ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT = -164,
768 
769     /*
770      * @brief Resolving a hostname to an IP address list included the IPv4 address
771      *        "127.0.53.53". This is a special IP address which ICANN has recommended to
772      *        indicate there was a name collision, and alert admins to a potential
773      *        problem.
774      *
775      * @syscap SystemCapability.Web.Webview.Core
776      * @since 12
777      */
778     ARKWEB_ERR_ICANN_NAME_COLLISION = -166,
779 
780     /*
781      * @brief The SSL server presented a certificate which could not be decoded. This is
782      *        not a certificate error code as no X509Certificate object is available. This
783      *        error is fatal.
784      *
785      * @syscap SystemCapability.Web.Webview.Core
786      * @since 12
787      */
788     ARKWEB_ERR_SSL_SERVER_CERT_BAD_FORMAT = -167,
789 
790     /*
791      * @brief Certificate Transparency: Received a signed tree head that failed to parse.
792      *
793      * @syscap SystemCapability.Web.Webview.Core
794      * @since 12
795      */
796     ARKWEB_ERR_CT_STH_PARSING_FAILED = -168,
797 
798     /*
799      * @brief Certificate Transparency: Received a signed tree head whose JSON parsing was
800      *        OK but was missing some of the fields.
801      *
802      * @syscap SystemCapability.Web.Webview.Core
803      * @since 12
804      */
805     ARKWEB_ERR_CT_STH_INCOMPLETE = -169,
806 
807     /*
808      * @brief The attempt to reuse a connection to send proxy auth credentials failed
809      *        before the AuthController was used to generate credentials. The caller should
810      *        reuse the controller with a new connection. This error is only used
811      *        internally by the network stack.
812      *
813      * @syscap SystemCapability.Web.Webview.Core
814      * @since 12
815      */
816     ARKWEB_ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH = -170,
817 
818     /*
819      * @brief Certificate Transparency: Failed to parse the received consistency proof.
820      *
821      * @syscap SystemCapability.Web.Webview.Core
822      * @since 12
823      */
824     ARKWEB_ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED = -171,
825 
826     /*
827      * @brief The SSL server required an unsupported cipher suite that has since been
828      *        removed. This error will temporarily be signaled on a fallback for one or two
829      *        releases immediately following a cipher suite's removal, after which the
830      *        fallback will be removed.
831      *
832      * @syscap SystemCapability.Web.Webview.Core
833      * @since 12
834      */
835     ARKWEB_ERR_SSL_OBSOLETE_CIPHER = -172,
836 
837     /*
838      * @brief When a WebSocket handshake is done successfully and the connection has been
839      *        upgraded, the URLRequest is cancelled with this error code.
840      *
841      * @syscap SystemCapability.Web.Webview.Core
842      * @since 12
843      */
844     ARKWEB_ERR_WS_UPGRADE = -173,
845 
846     /*
847      * @brief Socket ReadIfReady support is not implemented. This error should not be user
848      *        visible, because the normal Read(, method is used as a fallback.
849      *
850      * @syscap SystemCapability.Web.Webview.Core
851      * @since 12
852      */
853     ARKWEB_ERR_READ_IF_READY_NOT_IMPLEMENTED = -174,
854 
855     /*
856      * @brief No socket buffer space is available.
857      *
858      * @syscap SystemCapability.Web.Webview.Core
859      * @since 12
860      */
861     ARKWEB_ERR_NO_BUFFER_SPACE = -176,
862 
863     /*
864      * @brief There were no common signature algorithms between our client certificate
865      *        private key and the server's preferences.
866      *
867      * @syscap SystemCapability.Web.Webview.Core
868      * @since 12
869      */
870     ARKWEB_ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS = -177,
871 
872     /*
873      * @brief TLS 1.3 early data was rejected by the server. This will be received before
874      *        any data is returned from the socket. The request should be retried with
875      *        early data disabled.
876      *
877      * @syscap SystemCapability.Web.Webview.Core
878      * @since 12
879      */
880     ARKWEB_ERR_EARLY_DATA_REJECTED = -178,
881 
882     /*
883      * @brief TLS 1.3 early data was offered, but the server responded with TLS 1.2 or
884      *        earlier. This is an internal error code to account for a
885      *        backwards-compatibility issue with early data and TLS 1.2. It will be
886      *        received before any data is returned from the socket. The request should be
887      *        retried with early data disabled.
888      *        See https://tools.ietf.org/html/rfc8446#appendix-D.3 for details.
889      *
890      * @syscap SystemCapability.Web.Webview.Core
891      * @since 12
892      */
893     ARKWEB_ERR_WRONG_VERSION_ON_EARLY_DATA = -179,
894 
895     /*
896      * @brief TLS 1.3 was enabled, but a lower version was negotiated and the server
897      *        returned a value indicating it supported TLS 1.3. This is part of a security
898      *        check in TLS 1.3, but it may also indicate the user is behind a buggy
899      *        TLS-terminating proxy which implemented TLS 1.2 incorrectly. (See
900      *        rhttps://crbug.com/boringssl/226.,
901      *
902      * @syscap SystemCapability.Web.Webview.Core
903      * @since 12
904      */
905     ARKWEB_ERR_TLS13_DOWNGRADE_DETECTED = -180,
906 
907     /*
908      * @brief The server's certificate has a keyUsage extension incompatible with the
909      *        negotiated TLS key exchange method.
910      *
911      * @syscap SystemCapability.Web.Webview.Core
912      * @since 12
913      */
914     ARKWEB_ERR_SSL_KEY_USAGE_INCOMPATIBLE = -181,
915 
916     /*
917      * @brief The ECHConfigList fetched over DNS cannot be parsed.
918      *
919      * @syscap SystemCapability.Web.Webview.Core
920      * @since 12
921      */
922     ARKWEB_ERR_INVALID_ECH_CONFIG_LIST = -182,
923 
924     /*
925      * @brief ECH was enabled, but the server was unable to decrypt the encrypted
926      *        ClientHello.
927      *
928      * @syscap SystemCapability.Web.Webview.Core
929      * @since 12
930      */
931     ARKWEB_ERR_ECH_NOT_NEGOTIATED = -183,
932 
933     /*
934      * @brief ECH was enabled, the server was unable to decrypt the encrypted ClientHello,
935      *        and additionally did not present a certificate valid for the public name.
936      *
937      * @syscap SystemCapability.Web.Webview.Core
938      * @since 12
939      */
940     ARKWEB_ERR_ECH_FALLBACK_CERTIFICATE_INVALID = -184,
941 
942     /*
943      * @brief The server responded with a certificate whose common name did not match
944      *        the host name.  This could mean:
945      *        1. An attacker has redirected our traffic to their server and is
946      *           presenting a certificate for which they know the private key.
947      *        2. The server is misconfigured and responding with the wrong cert.
948      *        3. The user is on a wireless network and is being redirected to the
949      *           network's login page.
950      *        4. The OS has used a DNS search suffix and the server doesn't have
951      *           a certificate for the abbreviated name in the address bar.
952      *
953      * @syscap SystemCapability.Web.Webview.Core
954      * @since 12
955      */
956     ARKWEB_ERR_CERT_COMMON_NAME_INVALID = -200,
957 
958     /*
959      * @brief The server responded with a certificate that, by our clock, appears to
960      *        either not yet be valid or to have expired.  This could mean:
961      *        1. An attacker is presenting an old certificate for which they have
962      *           managed to obtain the private key.
963      *        2. The server is misconfigured and is not presenting a valid cert.
964      *        3. Our clock is wrong.
965      *
966      * @syscap SystemCapability.Web.Webview.Core
967      * @since 12
968      */
969     ARKWEB_ERR_CERT_DATE_INVALID = -201,
970 
971     /*
972      * @brief The server responded with a certificate that is signed by an authority
973      *        we don't trust.  The could mean:
974      *        1. An attacker has substituted the real certificate for a cert that
975      *           contains their public key and is signed by their cousin.
976      *        2. The server operator has a legitimate certificate from a CA we don't
977      *           know about, but should trust.
978      *        3. The server is presenting a self-signed certificate, providing no
979      *           defense against active attackers (but foiling passive attackers,.
980      *
981      * @syscap SystemCapability.Web.Webview.Core
982      * @since 12
983      */
984     ARKWEB_ERR_CERT_AUTHORITY_INVALID = -202,
985 
986     /*
987      * @brief The server responded with a certificate that contains errors.
988      *        This error is not recoverable.
989      *        MSDN describes this error as follows:
990      *           "The SSL certificate contains errors."
991      *        NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency,
992      *        use that code instead of this one from now on.
993      *
994      * @syscap SystemCapability.Web.Webview.Core
995      * @since 12
996      */
997     ARKWEB_ERR_CERT_CONTAINS_ERRORS = -203,
998 
999     /*
1000      * @brief The certificate has no mechanism for determining if it is revoked.  In
1001      *        effect, this certificate cannot be revoked.
1002      *
1003      * @syscap SystemCapability.Web.Webview.Core
1004      * @since 12
1005      */
1006     ARKWEB_ERR_CERT_NO_REVOCATION_MECHANISM = -204,
1007 
1008     /*
1009      * @brief Revocation information for the security certificate for this site is not
1010      *        available.  This could mean:
1011      *        1. An attacker has compromised the private key in the certificate and is
1012      *           blocking our attempt to find out that the cert was revoked.
1013      *        2. The certificate is unrevoked, but the revocation server is busy or
1014      *           unavailable.
1015      *
1016      * @syscap SystemCapability.Web.Webview.Core
1017      * @since 12
1018      */
1019     ARKWEB_ERR_CERT_UNABLE_TO_CHECK_REVOCATION = -205,
1020 
1021     /*
1022      * @brief The server responded with a certificate has been revoked.
1023      *        We have the capability to ignore this error, but it is probably not the
1024      *        thing to do.
1025      *
1026      * @syscap SystemCapability.Web.Webview.Core
1027      * @since 12
1028      */
1029     ARKWEB_ERR_CERT_REVOKED = -206,
1030 
1031     /*
1032      * @brief The server responded with a certificate that is invalid.
1033      *        This error is not recoverable.
1034      *        MSDN describes this error as follows:
1035      *           "The SSL certificate is invalid."
1036      *
1037      * @syscap SystemCapability.Web.Webview.Core
1038      * @since 12
1039      */
1040     ARKWEB_ERR_CERT_INVALID = -207,
1041 
1042     /*
1043      * @brief The server responded with a certificate that is signed using a weak
1044      *        signature algorithm.
1045      *
1046      * @syscap SystemCapability.Web.Webview.Core
1047      * @since 12
1048      */
1049     ARKWEB_ERR_CERT_WEAK_SIGNATURE_ALGORITHM = -208,
1050 
1051     /*
1052      * @brief The host name specified in the certificate is not unique.
1053      *
1054      * @syscap SystemCapability.Web.Webview.Core
1055      * @since 12
1056      */
1057     ARKWEB_ERR_CERT_NON_UNIQUE_NAME = -210,
1058 
1059     /*
1060      * @brief The server responded with a certificate that contains a weak key (e.g.
1061      *        a too-small RSA key,.
1062      *
1063      * @syscap SystemCapability.Web.Webview.Core
1064      * @since 12
1065      */
1066     ARKWEB_ERR_CERT_WEAK_KEY = -211,
1067 
1068     /*
1069      * @brief The certificate claimed DNS names that are in violation of name constraints.
1070      *
1071      * @syscap SystemCapability.Web.Webview.Core
1072      * @since 12
1073      */
1074     ARKWEB_ERR_CERT_NAME_CONSTRAINT_VIOLATION = -212,
1075 
1076     /*
1077      * @brief The certificate's validity period is too long.
1078      *
1079      * @syscap SystemCapability.Web.Webview.Core
1080      * @since 12
1081      */
1082     ARKWEB_ERR_CERT_VALIDITY_TOO_LONG = -213,
1083 
1084     /*
1085      * @brief Certificate Transparency was required for this connection, but the server
1086      *        did not provide CT information that complied with the policy.
1087      *
1088      * @syscap SystemCapability.Web.Webview.Core
1089      * @since 12
1090      */
1091     ARKWEB_ERR_CERTIFICATE_TRANSPARENCY_REQUIRED = -214,
1092 
1093     /*
1094      * @brief The certificate chained to a legacy Symantec root that is no longer trusted.
1095      *
1096      * @syscap SystemCapability.Web.Webview.Core
1097      * @since 12
1098      */
1099     ARKWEB_ERR_CERT_SYMANTEC_LEGACY = -215,
1100 
1101     /*
1102      * @brief The certificate is known to be used for interception by an entity other
1103      *        the device owner.
1104      *
1105      * @syscap SystemCapability.Web.Webview.Core
1106      * @since 12
1107      */
1108     ARKWEB_ERR_CERT_KNOWN_INTERCEPTION_BLOCKED = -217,
1109 
1110     /*
1111      * @brief The connection uses an obsolete version of SSL/TLS or cipher.
1112      *
1113      * @syscap SystemCapability.Web.Webview.Core
1114      * @since 12
1115      */
1116     ARKWEB_ERR_SSL_OBSOLETE_VERSION_OR_CIPHER = -218,
1117 
1118     /*
1119      * @brief The value immediately past the last certificate error code.
1120      *
1121      * @syscap SystemCapability.Web.Webview.Core
1122      * @since 12
1123      */
1124     ARKWEB_ERR_CERT_END = -219,
1125 
1126     /*
1127      * @brief The URL is invalid.
1128      *
1129      * @syscap SystemCapability.Web.Webview.Core
1130      * @since 12
1131      */
1132     ARKWEB_ERR_INVALID_URL = -300,
1133 
1134     /*
1135      * @brief The scheme of the URL is disallowed.
1136      *
1137      * @syscap SystemCapability.Web.Webview.Core
1138      * @since 12
1139      */
1140     ARKWEB_ERR_DISALLOWED_URL_SCHEME = -301,
1141 
1142     /*
1143      * @brief The scheme of the URL is unknown.
1144      *
1145      * @syscap SystemCapability.Web.Webview.Core
1146      * @since 12
1147      */
1148     ARKWEB_ERR_UNKNOWN_URL_SCHEME = -302,
1149 
1150     /*
1151      * @brief Attempting to load an URL resulted in a redirect to an invalid URL.
1152      *
1153      * @syscap SystemCapability.Web.Webview.Core
1154      * @since 12
1155      */
1156     ARKWEB_ERR_INVALID_REDIRECT = -303,
1157 
1158     /*
1159      * @brief Attempting to load an URL resulted in too many redirects.
1160      *
1161      * @syscap SystemCapability.Web.Webview.Core
1162      * @since 12
1163      */
1164     ARKWEB_ERR_TOO_MANY_REDIRECTS = -310,
1165 
1166     /*
1167      * @brief Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect
1168      *        to file:// is considered unsafe,.
1169      *
1170      * @syscap SystemCapability.Web.Webview.Core
1171      * @since 12
1172      */
1173     ARKWEB_ERR_UNSAFE_REDIRECT = -311,
1174 
1175     /*
1176      * @brief Attempting to load an URL with an unsafe port number.
1177      *
1178      * @syscap SystemCapability.Web.Webview.Core
1179      * @since 12
1180      */
1181     ARKWEB_ERR_UNSAFE_PORT = -312,
1182 
1183     /*
1184      * @brief The server's response was invalid.
1185      *
1186      * @syscap SystemCapability.Web.Webview.Core
1187      * @since 12
1188      */
1189     ARKWEB_ERR_INVALID_RESPONSE = -320,
1190 
1191     /*
1192      * @brief Error in chunked transfer encoding.
1193      *
1194      * @syscap SystemCapability.Web.Webview.Core
1195      * @since 12
1196      */
1197     ARKWEB_ERR_INVALID_CHUNKED_ENCODING = -321,
1198 
1199     /*
1200      * @brief The server did not support the request method.
1201      *
1202      * @syscap SystemCapability.Web.Webview.Core
1203      * @since 12
1204      */
1205     ARKWEB_ERR_METHOD_UNSUPPORTED = -322,
1206 
1207     /*
1208      * @brief The response was 407 (Proxy Authentication Required,, yet we did not send
1209      *        the request to a proxy.
1210      *
1211      * @syscap SystemCapability.Web.Webview.Core
1212      * @since 12
1213      */
1214     ARKWEB_ERR_UNEXPECTED_PROXY_AUTH = -323,
1215 
1216     /*
1217      * @brief The server closed the connection without sending any data.
1218      *
1219      * @syscap SystemCapability.Web.Webview.Core
1220      * @since 12
1221      */
1222     ARKWEB_ERR_EMPTY_RESPONSE = -324,
1223 
1224     /*
1225      * @brief The headers section of the response is too large.
1226      *
1227      * @syscap SystemCapability.Web.Webview.Core
1228      * @since 12
1229      */
1230     ARKWEB_ERR_RESPONSE_HEADERS_TOO_BIG = -325,
1231 
1232     /*
1233      * @brief The evaluation of the PAC script failed.
1234      *
1235      * @syscap SystemCapability.Web.Webview.Core
1236      * @since 12
1237      */
1238     ARKWEB_ERR_PAC_SCRIPT_FAILED = -327,
1239 
1240     /*
1241      * @brief The response was 416 (Requested range not satisfiable, and the server cannot
1242      *        satisfy the range requested.
1243      *
1244      * @syscap SystemCapability.Web.Webview.Core
1245      * @since 12
1246      */
1247     ARKWEB_ERR_REQUEST_RANGE_NOT_SATISFIABLE = -328,
1248 
1249     /*
1250      * @brief The identity used for authentication is invalid.
1251      *
1252      * @syscap SystemCapability.Web.Webview.Core
1253      * @since 12
1254      */
1255     ARKWEB_ERR_MALFORMED_IDENTITY = -329,
1256 
1257     /*
1258      * @brief Content decoding of the response body failed.
1259      *
1260      * @syscap SystemCapability.Web.Webview.Core
1261      * @since 12
1262      */
1263     ARKWEB_ERR_CONTENT_DECODING_FAILED = -330,
1264 
1265     /*
1266      * @brief An operation could not be completed because all network IO
1267      *        is suspended.
1268      *
1269      * @syscap SystemCapability.Web.Webview.Core
1270      * @since 12
1271      */
1272     ARKWEB_ERR_NETWORK_IO_SUSPENDED = -331,
1273 
1274     /*
1275      * @brief FLIP data received without receiving a SYN_REPLY on the stream.
1276      *
1277      * @syscap SystemCapability.Web.Webview.Core
1278      * @since 12
1279      */
1280     ARKWEB_ERR_SYN_REPLY_NOT_RECEIVED = -332,
1281 
1282     /*
1283      * @brief Converting the response to target encoding failed.
1284      *
1285      * @syscap SystemCapability.Web.Webview.Core
1286      * @since 12
1287      */
1288     ARKWEB_ERR_ENCODING_CONVERSION_FAILED = -333,
1289 
1290     /*
1291      * @brief The server sent an FTP directory listing in a format we do not understand.
1292      *
1293      * @syscap SystemCapability.Web.Webview.Core
1294      * @since 12
1295      */
1296     ARKWEB_ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT = -334,
1297 
1298     /*
1299      * @brief There are no supported proxies in the provided list.
1300      *
1301      * @syscap SystemCapability.Web.Webview.Core
1302      * @since 12
1303      */
1304     ARKWEB_ERR_NO_SUPPORTED_PROXIES = -336,
1305 
1306     /*
1307      * @brief There is an HTTP/2 protocol error.
1308      *
1309      * @syscap SystemCapability.Web.Webview.Core
1310      * @since 12
1311      */
1312     ARKWEB_ERR_HTTP2_PROTOCOL_ERROR = -337,
1313 
1314     /*
1315      * @brief Credentials could not be established during HTTP Authentication.
1316      *
1317      * @syscap SystemCapability.Web.Webview.Core
1318      * @since 12
1319      */
1320     ARKWEB_ERR_INVALID_AUTH_CREDENTIALS = -338,
1321 
1322     /*
1323      * @brief An HTTP Authentication scheme was tried which is not supported on this
1324      *        machine.
1325      *
1326      * @syscap SystemCapability.Web.Webview.Core
1327      * @since 12
1328      */
1329     ARKWEB_ERR_UNSUPPORTED_AUTH_SCHEME = -339,
1330 
1331     /*
1332      * @brief Detecting the encoding of the response failed.
1333      *
1334      * @syscap SystemCapability.Web.Webview.Core
1335      * @since 12
1336      */
1337     ARKWEB_ERR_ENCODING_DETECTION_FAILED = -340,
1338 
1339     /*
1340      * @brief (GSSAPI, No Kerberos credentials were available during HTTP Authentication.
1341      *
1342      * @syscap SystemCapability.Web.Webview.Core
1343      * @since 12
1344      */
1345     ARKWEB_ERR_MISSING_AUTH_CREDENTIALS = -341,
1346 
1347     /*
1348      * @brief An unexpected, but documented, SSPI or GSSAPI status code was returned.
1349      *
1350      * @syscap SystemCapability.Web.Webview.Core
1351      * @since 12
1352      */
1353     ARKWEB_ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS = -342,
1354 
1355     /*
1356      * @brief The environment was not set up correctly for authentication (for
1357      *        example, no KDC could be found or the principal is unknown.
1358      *
1359      * @syscap SystemCapability.Web.Webview.Core
1360      * @since 12
1361      */
1362     ARKWEB_ERR_MISCONFIGURED_AUTH_ENVIRONMENT = -343,
1363 
1364     /*
1365      * @brief An undocumented SSPI or GSSAPI status code was returned.
1366      *
1367      * @syscap SystemCapability.Web.Webview.Core
1368      * @since 12
1369      */
1370     ARKWEB_ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS = -344,
1371 
1372     /*
1373      * @brief The HTTP response was too big to drain.
1374      *
1375      * @syscap SystemCapability.Web.Webview.Core
1376      * @since 12
1377      */
1378     ARKWEB_ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN = -345,
1379 
1380     /*
1381      * @brief The HTTP response contained multiple distinct Content-Length headers.
1382      *
1383      * @syscap SystemCapability.Web.Webview.Core
1384      * @since 12
1385      */
1386     ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH = -346,
1387 
1388     /*
1389      * @brief HTTP/2 headers have been received, but not all of them - status or version
1390      *        headers are missing, so we're expecting additional frames to complete them.
1391      *
1392      * @syscap SystemCapability.Web.Webview.Core
1393      * @since 12
1394      */
1395     ARKWEB_ERR_INCOMPLETE_HTTP2_HEADERS = -347,
1396 
1397     /*
1398      * @brief No PAC URL configuration could be retrieved from DHCP. This can indicate
1399      *        either a failure to retrieve the DHCP configuration, or that there was no
1400      *        PAC URL configured in DHCP.
1401      *
1402      * @syscap SystemCapability.Web.Webview.Core
1403      * @since 12
1404      */
1405     ARKWEB_ERR_PAC_NOT_IN_DHCP = -348,
1406 
1407     /*
1408      * @brief The HTTP response contained multiple Content-Disposition headers.
1409      *
1410      * @syscap SystemCapability.Web.Webview.Core
1411      * @since 12
1412      */
1413     ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION = -349,
1414 
1415     /*
1416      * @brief The HTTP response contained multiple Location headers.
1417      *
1418      * @syscap SystemCapability.Web.Webview.Core
1419      * @since 12
1420      */
1421     ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION = -350,
1422 
1423     /*
1424      * @brief HTTP/2 server refused the request without processing, and sent either a
1425      *        GOAWAY frame with error code NO_ERROR and Last-Stream-ID lower than the
1426      *        stream id corresponding to the request indicating that this request has not
1427      *        been processed yet, or a RST_STREAM frame with error code REFUSED_STREAM.
1428      *        Client MAY retry (on a different connection,.  See RFC7540 Section 8.1.4.
1429      *
1430      * @syscap SystemCapability.Web.Webview.Core
1431      * @since 12
1432      */
1433     ARKWEB_ERR_HTTP2_SERVER_REFUSED_STREAM = -351,
1434 
1435     /*
1436      * @brief HTTP/2 server didn't respond to the PING message.
1437      *
1438      * @syscap SystemCapability.Web.Webview.Core
1439      * @since 12
1440      */
1441     ARKWEB_ERR_HTTP2_PING_FAILED = -352,
1442 
1443     /*
1444      * @brief The HTTP response body transferred fewer bytes than were advertised by the
1445      *        Content-Length header when the connection is closed.
1446      *
1447      * @syscap SystemCapability.Web.Webview.Core
1448      * @since 12
1449      */
1450     ARKWEB_ERR_CONTENT_LENGTH_MISMATCH = -354,
1451 
1452     /*
1453      * @brief The HTTP response body is transferred with Chunked-Encoding, but the
1454      *        terminating zero-length chunk was never sent when the connection is closed.
1455      *
1456      * @syscap SystemCapability.Web.Webview.Core
1457      * @since 12
1458      */
1459     ARKWEB_ERR_INCOMPLETE_CHUNKED_ENCODING = -355,
1460 
1461     /*
1462      * @brief There is a QUIC protocol error.
1463      *
1464      * @syscap SystemCapability.Web.Webview.Core
1465      * @since 12
1466      */
1467     ARKWEB_ERR_QUIC_PROTOCOL_ERROR = -356,
1468 
1469     /*
1470      * @brief The HTTP headers were truncated by an EOF.
1471      *
1472      * @syscap SystemCapability.Web.Webview.Core
1473      * @since 12
1474      */
1475     ARKWEB_ERR_RESPONSE_HEADERS_TRUNCATED = -357,
1476 
1477     /*
1478      * @brief The QUIC crypto handshake failed.  This means that the server was unable
1479      *        to read any requests sent, so they may be resent.
1480      *
1481      * @syscap SystemCapability.Web.Webview.Core
1482      * @since 12
1483      */
1484     ARKWEB_ERR_QUIC_HANDSHAKE_FAILED = -358,
1485 
1486     /*
1487      * @brief Transport security is inadequate for the HTTP/2 version.
1488      *
1489      * @syscap SystemCapability.Web.Webview.Core
1490      * @since 12
1491      */
1492     ARKWEB_ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY = -360,
1493 
1494     /*
1495      * @brief The peer violated HTTP/2 flow control.
1496      *
1497      * @syscap SystemCapability.Web.Webview.Core
1498      * @since 12
1499      */
1500     ARKWEB_ERR_HTTP2_FLOW_CONTROL_ERROR = -361,
1501 
1502     /*
1503      * @brief The peer sent an improperly sized HTTP/2 frame.
1504      *
1505      * @syscap SystemCapability.Web.Webview.Core
1506      * @since 12
1507      */
1508     ARKWEB_ERR_HTTP2_FRAME_SIZE_ERROR = -362,
1509 
1510     /*
1511      * @brief Decoding or encoding of compressed HTTP/2 headers failed.
1512      *
1513      * @syscap SystemCapability.Web.Webview.Core
1514      * @since 12
1515      */
1516     ARKWEB_ERR_HTTP2_COMPRESSION_ERROR = -363,
1517 
1518     /*
1519      * @brief Proxy Auth Requested without a valid Client Socket Handle.
1520      *
1521      * @syscap SystemCapability.Web.Webview.Core
1522      * @since 12
1523      */
1524     ARKWEB_ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION = -364,
1525 
1526     /*
1527      * @brief HTTP_1_1_REQUIRED error code received on HTTP/2 session.
1528      *
1529      * @syscap SystemCapability.Web.Webview.Core
1530      * @since 12
1531      */
1532     ARKWEB_ERR_HTTP_1_1_REQUIRED = -365,
1533 
1534     /*
1535      * @brief HTTP_1_1_REQUIRED error code received on HTTP/2 session to proxy.
1536      *
1537      * @syscap SystemCapability.Web.Webview.Core
1538      * @since 12
1539      */
1540     ARKWEB_ERR_PROXY_HTTP_1_1_REQUIRED = -366,
1541 
1542     /*
1543      * @brief The PAC script terminated fatally and must be reloaded.
1544      *
1545      * @syscap SystemCapability.Web.Webview.Core
1546      * @since 12
1547      */
1548     ARKWEB_ERR_PAC_SCRIPT_TERMINATED = -367,
1549 
1550     /*
1551      * @brief The server was expected to return an HTTP/1.x response, but did not. Rather
1552      *        than treat it as HTTP/0.9, this error is returned.
1553      *
1554      * @syscap SystemCapability.Web.Webview.Core
1555      * @since 12
1556      */
1557     ARKWEB_ERR_INVALID_HTTP_RESPONSE = -370,
1558 
1559     /*
1560      * @brief Initializing content decoding failed.
1561      *
1562      * @syscap SystemCapability.Web.Webview.Core
1563      * @since 12
1564      */
1565     ARKWEB_ERR_CONTENT_DECODING_INIT_FAILED = -371,
1566 
1567     /*
1568      * @brief Received HTTP/2 RST_STREAM frame with NO_ERROR error code.  This error should
1569      *        be handled internally by HTTP/2 code, and should not make it above the
1570      *        SpdyStream layer.
1571      *
1572      * @syscap SystemCapability.Web.Webview.Core
1573      * @since 12
1574      */
1575     ARKWEB_ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED = -372,
1576 
1577     /*
1578      * @brief The pushed stream claimed by the request is no longer available.
1579      *
1580      * @syscap SystemCapability.Web.Webview.Core
1581      * @since 12
1582      */
1583     ARKWEB_ERR_HTTP2_PUSHED_STREAM_NOT_AVAILABLE = -373,
1584 
1585     /*
1586      * @brief A pushed stream was claimed and later reset by the server. When this happens,
1587      *        the request should be retried.
1588      *
1589      * @syscap SystemCapability.Web.Webview.Core
1590      * @since 12
1591      */
1592     ARKWEB_ERR_HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER = -374,
1593 
1594     /*
1595      * @brief An HTTP transaction was retried too many times due for authentication or
1596      *        invalid certificates.
1597      *
1598      * @syscap SystemCapability.Web.Webview.Core
1599      * @since 12
1600      */
1601     ARKWEB_ERR_TOO_MANY_RETRIES = -375,
1602 
1603     /*
1604      * @brief Received an HTTP/2 frame on a closed stream.
1605      *
1606      * @syscap SystemCapability.Web.Webview.Core
1607      * @since 12
1608      */
1609     ARKWEB_ERR_HTTP2_STREAM_CLOSED = -376,
1610 
1611     /*
1612      * @brief Client is refusing an HTTP/2 stream.
1613      *
1614      * @syscap SystemCapability.Web.Webview.Core
1615      * @since 12
1616      */
1617     ARKWEB_ERR_HTTP2_CLIENT_REFUSED_STREAM = -377,
1618 
1619     /*
1620      * @brief A pushed HTTP/2 stream was claimed by a request based on matching URL and
1621      *        request headers, but the pushed response headers do not match the request.
1622      *
1623      * @syscap SystemCapability.Web.Webview.Core
1624      * @since 12
1625      */
1626     ARKWEB_ERR_HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH = -378,
1627 
1628     /*
1629      * @brief The server returned a non-2xx HTTP response code.
1630      *
1631      * @syscap SystemCapability.Web.Webview.Core
1632      * @since 12
1633      */
1634     ARKWEB_ERR_HTTP_RESPONSE_CODE_FAILURE = -379,
1635 
1636     /*
1637      * @brief The certificate presented on a QUIC connection does not chain to a known root
1638      *        and the origin connected to is not on a list of domains where unknown roots
1639      *        are allowed.
1640      *
1641      * @syscap SystemCapability.Web.Webview.Core
1642      * @since 12
1643      */
1644     ARKWEB_ERR_QUIC_UNKNOWN_CERT_ROOT = -380,
1645 
1646     /*
1647      * @brief A GOAWAY frame has been received indicating that the request has not been
1648      *        processed and is therefore safe to retry on a different connection.
1649      *
1650      * @syscap SystemCapability.Web.Webview.Core
1651      * @since 12
1652      */
1653     ARKWEB_ERR_QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED = -381,
1654 
1655     /*
1656      * @brief The ACCEPT_CH restart has been triggered too many times.
1657      *
1658      * @syscap SystemCapability.Web.Webview.Core
1659      * @since 12
1660      */
1661     ARKWEB_ERR_TOO_MANY_ACCEPT_CH_RESTARTS = -382,
1662 
1663     /*
1664      * @brief The IP address space of the remote endpoint differed from the previous
1665      *        observed value during the same request. Any cache entry for the affected
1666      *        request should be invalidated.
1667      *
1668      * @syscap SystemCapability.Web.Webview.Core
1669      * @since 12
1670      */
1671     ARKWEB_ERR_INCONSISTENT_IP_ADDRESS_SPACE = -383,
1672 
1673     /*
1674      * @brief The IP address space of the cached remote endpoint is blocked by local
1675      *        network access check.
1676      *
1677      * @syscap SystemCapability.Web.Webview.Core
1678      * @since 12
1679      */
1680     ARKWEB_ERR_CACHED_IP_ADDRESS_SPACE_BLOCKED_BY_LOCAL_NETWORK_ACCESS_POLICY = -384,
1681 
1682     /*
1683      * @brief The cache does not have the requested entry.
1684      *
1685      * @syscap SystemCapability.Web.Webview.Core
1686      * @since 12
1687      */
1688     ARKWEB_ERR_CACHE_MISS = -400,
1689 
1690     /*
1691      * @brief Unable to read from the disk cache.
1692      *
1693      * @syscap SystemCapability.Web.Webview.Core
1694      * @since 12
1695      */
1696     ARKWEB_ERR_CACHE_READ_FAILURE = -401,
1697 
1698     /*
1699      * @brief Unable to write to the disk cache.
1700      *
1701      * @syscap SystemCapability.Web.Webview.Core
1702      * @since 12
1703      */
1704     ARKWEB_ERR_CACHE_WRITE_FAILURE = -402,
1705 
1706     /*
1707      * @brief The operation is not supported for this entry.
1708      *
1709      * @syscap SystemCapability.Web.Webview.Core
1710      * @since 12
1711      */
1712     ARKWEB_ERR_CACHE_OPERATION_UNSUPPORTED = -403,
1713 
1714     /*
1715      * @brief The disk cache is unable to open this entry.
1716      *
1717      * @syscap SystemCapability.Web.Webview.Core
1718      * @since 12
1719      */
1720     ARKWEB_ERR_CACHE_OPEN_FAILURE = -404,
1721 
1722     /*
1723      * @brief The disk cache is unable to create this entry.
1724      *
1725      * @syscap SystemCapability.Web.Webview.Core
1726      * @since 12
1727      */
1728     ARKWEB_ERR_CACHE_CREATE_FAILURE = -405,
1729 
1730     /*
1731      * @brief Multiple transactions are racing to create disk cache entries.
1732      *
1733      * @syscap SystemCapability.Web.Webview.Core
1734      * @since 12
1735      */
1736     ARKWEB_ERR_CACHE_RACE = -406,
1737 
1738     /*
1739      * @brief The cache was unable to read a checksum record on an entry.
1740      *
1741      * @syscap SystemCapability.Web.Webview.Core
1742      * @since 12
1743      */
1744     ARKWEB_ERR_CACHE_CHECKSUM_READ_FAILURE = -407,
1745 
1746     /*
1747      * @brief The cache found an entry with an invalid checksum.
1748      *
1749      * @syscap SystemCapability.Web.Webview.Core
1750      * @since 12
1751      */
1752     ARKWEB_ERR_CACHE_CHECKSUM_MISMATCH = -408,
1753 
1754     /*
1755      * @brief Internal error code for the HTTP cache.
1756      *
1757      * @syscap SystemCapability.Web.Webview.Core
1758      * @since 12
1759      */
1760     ARKWEB_ERR_CACHE_LOCK_TIMEOUT = -409,
1761 
1762     /*
1763      * @brief Received a challenge after the transaction has read some data, and the
1764      *        credentials aren't available.
1765      *
1766      * @syscap SystemCapability.Web.Webview.Core
1767      * @since 12
1768      */
1769     ARKWEB_ERR_CACHE_AUTH_FAILURE_AFTER_READ = -410,
1770 
1771     /*
1772      * @brief Internal not-quite error code for the HTTP cache.
1773      *
1774      * @syscap SystemCapability.Web.Webview.Core
1775      * @since 12
1776      */
1777     ARKWEB_ERR_CACHE_ENTRY_NOT_SUITABLE = -411,
1778 
1779     /*
1780      * @brief The disk cache is unable to doom this entry.
1781      *
1782      * @syscap SystemCapability.Web.Webview.Core
1783      * @since 12
1784      */
1785     ARKWEB_ERR_CACHE_DOOM_FAILURE = -412,
1786 
1787     /*
1788      * @brief The disk cache is unable to open or create this entry.
1789      *
1790      * @syscap SystemCapability.Web.Webview.Core
1791      * @since 12
1792      */
1793     ARKWEB_ERR_CACHE_OPEN_OR_CREATE_FAILURE = -413,
1794 
1795     /*
1796      * @brief The server's response was insecure (e.g. there was a cert error,.
1797      *
1798      * @syscap SystemCapability.Web.Webview.Core
1799      * @since 12
1800      */
1801     ARKWEB_ERR_INSECURE_RESPONSE = -501,
1802 
1803     /*
1804      * @brief An attempt to import a client certificate failed, as the user's key
1805      *        database lacked a corresponding private key.
1806      *
1807      * @syscap SystemCapability.Web.Webview.Core
1808      * @since 12
1809      */
1810     ARKWEB_ERR_NO_PRIVATE_KEY_FOR_CERT = -502,
1811 
1812     /*
1813      * @brief An error adding a certificate to the OS certificate database.
1814      *
1815      * @syscap SystemCapability.Web.Webview.Core
1816      * @since 12
1817      */
1818     ARKWEB_ERR_ADD_USER_CERT_FAILED = -503,
1819 
1820     /*
1821      * @brief An error occurred while handling a signed exchange.
1822      *
1823      * @syscap SystemCapability.Web.Webview.Core
1824      * @since 12
1825      */
1826     ARKWEB_ERR_INVALID_SIGNED_EXCHANGE = -504,
1827 
1828     /*
1829      * @brief An error occurred while handling a Web Bundle source.
1830      *
1831      * @syscap SystemCapability.Web.Webview.Core
1832      * @since 12
1833      */
1834     ARKWEB_ERR_INVALID_WEB_BUNDLE = -505,
1835 
1836     /*
1837      * @brief A Trust Tokens protocol operation-executing request failed for one of a
1838      *        number of reasons (precondition failure, internal error, bad response,.
1839      *
1840      * @syscap SystemCapability.Web.Webview.Core
1841      * @since 12
1842      */
1843     ARKWEB_ERR_TRUST_TOKEN_OPERATION_FAILED = -506,
1844 
1845     /*
1846      * @brief When handling a Trust Tokens protocol operation-executing request, the system
1847      *        was able to execute the request's Trust Tokens operation without sending the
1848      *        request to its destination.
1849      *
1850      * @syscap SystemCapability.Web.Webview.Core
1851      * @since 12
1852      */
1853     ARKWEB_ERR_TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST = -507,
1854 
1855     /*
1856      * @brief A generic error for failed FTP control connection command.
1857      *        If possible, please use or add a more specific error code.
1858      *
1859      * @syscap SystemCapability.Web.Webview.Core
1860      * @since 12
1861      */
1862     ARKWEB_ERR_FTP_FAILED = -601,
1863 
1864     /*
1865      * @brief The server cannot fulfill the request at this point. This is a temporary error.
1866      *        FTP response code 421.
1867      *
1868      * @syscap SystemCapability.Web.Webview.Core
1869      * @since 12
1870      */
1871     ARKWEB_ERR_FTP_SERVICE_UNAVAILABLE = -602,
1872 
1873     /*
1874      * @brief The server has aborted the transfer.
1875      *        FTP response code 426.
1876      *
1877      * @syscap SystemCapability.Web.Webview.Core
1878      * @since 12
1879      */
1880     ARKWEB_ERR_FTP_TRANSFER_ABORTED = -603,
1881 
1882     /*
1883      * @brief The file is busy, or some other temporary error condition on opening the file.
1884      *        FTP response code 450.
1885      *
1886      * @syscap SystemCapability.Web.Webview.Core
1887      * @since 12
1888      */
1889     ARKWEB_ERR_FTP_FILE_BUSY = -604,
1890 
1891     /*
1892      * @brief Server rejected our command because of syntax errors.
1893      *        FTP response codes 500, 501.
1894      *
1895      * @syscap SystemCapability.Web.Webview.Core
1896      * @since 12
1897      */
1898     ARKWEB_ERR_FTP_SYNTAX_ERROR = -605,
1899 
1900     /*
1901      * @brief Server does not support the command we issued.
1902      *        FTP response codes 502, 504.
1903      *
1904      * @syscap SystemCapability.Web.Webview.Core
1905      * @since 12
1906      */
1907     ARKWEB_ERR_FTP_COMMAND_UNSUPPORTED = -606,
1908 
1909     /*
1910      * @brief Server rejected our command because we didn't issue the commands in right order.
1911      *        FTP response code 503.
1912      *
1913      * @syscap SystemCapability.Web.Webview.Core
1914      * @since 12
1915      */
1916     ARKWEB_ERR_FTP_BAD_COMMAND_SEQUENCE = -607,
1917 
1918     /*
1919      * @brief PKCS #12 import failed due to incorrect password.
1920      *
1921      * @syscap SystemCapability.Web.Webview.Core
1922      * @since 12
1923      */
1924     ARKWEB_ERR_PKCS12_IMPORT_BAD_PASSWORD = -701,
1925 
1926     /*
1927      * @brief PKCS #12 import failed due to other error.
1928      *
1929      * @syscap SystemCapability.Web.Webview.Core
1930      * @since 12
1931      */
1932     ARKWEB_ERR_PKCS12_IMPORT_FAILED = -702,
1933 
1934     /*
1935      * @brief CA import failed - not a CA cert.
1936      *
1937      * @syscap SystemCapability.Web.Webview.Core
1938      * @since 12
1939      */
1940     ARKWEB_ERR_IMPORT_CA_CERT_NOT_CA = -703,
1941 
1942     /*
1943      * @brief Import failed - certificate already exists in database.
1944      *
1945      * @syscap SystemCapability.Web.Webview.Core
1946      * @since 12
1947      */
1948     ARKWEB_ERR_IMPORT_CERT_ALREADY_EXISTS = -704,
1949 
1950     /*
1951      * @brief CA import failed due to some other error.
1952      *
1953      * @syscap SystemCapability.Web.Webview.Core
1954      * @since 12
1955      */
1956     ARKWEB_ERR_IMPORT_CA_CERT_FAILED = -705,
1957 
1958     /*
1959      * @brief Server certificate import failed due to some internal error.
1960      *
1961      * @syscap SystemCapability.Web.Webview.Core
1962      * @since 12
1963      */
1964     ARKWEB_ERR_IMPORT_SERVER_CERT_FAILED = -706,
1965 
1966     /*
1967      * @brief PKCS #12 import failed due to invalid MAC.
1968      *
1969      * @syscap SystemCapability.Web.Webview.Core
1970      * @since 12
1971      */
1972     ARKWEB_ERR_PKCS12_IMPORT_INVALID_MAC = -707,
1973 
1974     /*
1975      * @brief PKCS #12 import failed due to invalid/corrupt file.
1976      *
1977      * @syscap SystemCapability.Web.Webview.Core
1978      * @since 12
1979      */
1980     ARKWEB_ERR_PKCS12_IMPORT_INVALID_FILE = -708,
1981 
1982     /*
1983      * @brief PKCS #12 import failed due to unsupported features.
1984      *
1985      * @syscap SystemCapability.Web.Webview.Core
1986      * @since 12
1987      */
1988     ARKWEB_ERR_PKCS12_IMPORT_UNSUPPORTED = -709,
1989 
1990     /*
1991      * @brief Key generation failed.
1992      *
1993      * @syscap SystemCapability.Web.Webview.Core
1994      * @since 12
1995      */
1996     ARKWEB_ERR_KEY_GENERATION_FAILED = -710,
1997 
1998     /*
1999      * @brief Failure to export private key.
2000      *
2001      * @syscap SystemCapability.Web.Webview.Core
2002      * @since 12
2003      */
2004     ARKWEB_ERR_PRIVATE_KEY_EXPORT_FAILED = -712,
2005 
2006     /*
2007      * @brief Self-signed certificate generation failed.
2008      *
2009      * @syscap SystemCapability.Web.Webview.Core
2010      * @since 12
2011      */
2012     ARKWEB_ERR_SELF_SIGNED_CERT_GENERATION_FAILED = -713,
2013 
2014     /*
2015      * @brief The certificate database changed in some way.
2016      *
2017      * @syscap SystemCapability.Web.Webview.Core
2018      * @since 12
2019      */
2020     ARKWEB_ERR_CERT_DATABASE_CHANGED = -714,
2021 
2022     /*
2023      * @brief The certificate verifier configuration changed in some way.
2024      *
2025      * @syscap SystemCapability.Web.Webview.Core
2026      * @since 12
2027      */
2028     ARKWEB_ERR_CERT_VERIFIER_CHANGED = -716,
2029 
2030     /*
2031      * @brief DNS resolver received a malformed response.
2032      *
2033      * @syscap SystemCapability.Web.Webview.Core
2034      * @since 12
2035      */
2036     ARKWEB_ERR_DNS_MALFORMED_RESPONSE = -800,
2037 
2038     /*
2039      * @brief DNS server requires TCP.
2040      *
2041      * @syscap SystemCapability.Web.Webview.Core
2042      * @since 12
2043      */
2044     ARKWEB_ERR_DNS_SERVER_REQUIRES_TCP = -801,
2045 
2046     /*
2047      * @brief DNS server failed.  This error is returned for all of the following
2048      *        error conditions:
2049      *        1 - Format error - The name server was unable to interpret the query.
2050      *        2 - Server failure - The name server was unable to process this query
2051      *            due to a problem with the name server.
2052      *        4 - Not Implemented - The name server does not support the requested
2053      *            kind of query.
2054      *        5 - Refused - The name server refuses to perform the specified
2055      *            operation for policy reasons.
2056      *
2057      * @syscap SystemCapability.Web.Webview.Core
2058      * @since 12
2059      */
2060     ARKWEB_ERR_DNS_SERVER_FAILED = -802,
2061 
2062     /*
2063      * @brief DNS transaction timed out.
2064      *
2065      * @syscap SystemCapability.Web.Webview.Core
2066      * @since 12
2067      */
2068     ARKWEB_ERR_DNS_TIMED_OUT = -803,
2069 
2070     /*
2071      * @brief The entry was not found in cache or other local sources, for lookups where
2072      *        only local sources were queried.
2073      *
2074      * @syscap SystemCapability.Web.Webview.Core
2075      * @since 12
2076      */
2077     ARKWEB_ERR_DNS_CACHE_MISS = -804,
2078 
2079     /*
2080      * @brief Suffix search list rules prevent resolution of the given host name.
2081      *
2082      * @syscap SystemCapability.Web.Webview.Core
2083      * @since 12
2084      */
2085     ARKWEB_ERR_DNS_SEARCH_EMPTY = -805,
2086 
2087     /*
2088      * @brief Failed to sort addresses according to RFC3484.
2089      *
2090      * @syscap SystemCapability.Web.Webview.Core
2091      * @since 12
2092      */
2093     ARKWEB_ERR_DNS_SORT_ERROR = -806,
2094 
2095     /*
2096      * @brief Failed to resolve the hostname of a DNS-over-HTTPS server.
2097      *
2098      * @syscap SystemCapability.Web.Webview.Core
2099      * @since 12
2100      */
2101     ARKWEB_ERR_DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED = -808,
2102 
2103     /*
2104      * @brief DNS identified the request as disallowed for insecure connection (http/ws,.
2105      *        Error should be handled as if an HTTP redirect was received to redirect to
2106      *        https or wss.
2107      *
2108      * @syscap SystemCapability.Web.Webview.Core
2109      * @since 12
2110      */
2111     ARKWEB_ERR_DNS_NAME_HTTPS_ONLY = -809,
2112 
2113     /*
2114      * @brief All DNS requests associated with this job have been cancelled.
2115      *
2116      * @syscap SystemCapability.Web.Webview.Core
2117      * @since 12
2118      */
2119     ARKWEB_ERR_DNS_REQUEST_CANCELED = -810,
2120 
2121     /*
2122      * @brief The hostname resolution of HTTPS record was expected to be resolved with
2123      *        alpn values of supported protocols, but did not.
2124      *
2125      * @syscap SystemCapability.Web.Webview.Core
2126      * @since 12
2127      */
2128     ARKWEB_ERR_DNS_NO_MATCHING_SUPPORTED_ALPN = -811,
2129 };
2130 
2131 #endif // ARKWEB_NET_ERROR_LIST_H
2132