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