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 * @kit ArkWeb 28 * @library libohweb.so 29 * @syscap SystemCapability.Web.Webview.Core 30 * @since 12 31 */ 32 #ifndef ARKWEB_NET_ERROR_LIST_H 33 #define ARKWEB_NET_ERROR_LIST_H 34 35 typedef enum ArkWeb_NetError { 36 /** 37 * @error Normal. 38 */ 39 ARKWEB_NET_OK = 0, 40 41 /** 42 * @error An asynchronous IO operation is not yet complete. This usually does not 43 * indicate a fatal error. Typically this error will be generated as a 44 * notification to wait for some external notification that the IO operation 45 * finally completed. 46 */ 47 ARKWEB_ERR_IO_PENDING = -1, 48 49 /** 50 * @error A generic failure occurred. 51 */ 52 ARKWEB_ERR_FAILED = -2, 53 54 /** 55 * @error An operation was aborted. 56 */ 57 ARKWEB_ERR_ABORTED = -3, 58 59 /** 60 * @error An argument to the function is incorrect. 61 */ 62 ARKWEB_ERR_INVALID_ARGUMENT = -4, 63 64 /** 65 * @error The handle or file descriptor is invalid. 66 */ 67 ARKWEB_ERR_INVALID_HANDLE = -5, 68 69 /** 70 * @error The file or directory cannot be found. 71 */ 72 ARKWEB_ERR_FILE_NOT_FOUND = -6, 73 74 /** 75 * @error An operation timed out. 76 */ 77 ARKWEB_ERR_TIMED_OUT = -7, 78 79 /** 80 * @error The file is too large. 81 */ 82 ARKWEB_ERR_FILE_TOO_LARGE = -8, 83 84 /** 85 * @error An unexpected error. This may be caused by a programming mistake or an 86 * invalid assumption. 87 */ 88 ARKWEB_ERR_UNEXPECTED = -9, 89 90 /** 91 * @error Permission to access a resource, other than the network, was denied. 92 */ 93 ARKWEB_ERR_ACCESS_DENIED = -10, 94 95 /** 96 * @error The operation failed because of unimplemented functionality. 97 */ 98 ARKWEB_ERR_NOT_IMPLEMENTED = -11, 99 100 /** 101 * @error There were not enough resources to complete the operation. 102 */ 103 ARKWEB_ERR_INSUFFICIENT_RESOURCES = -12, 104 105 /** 106 * @error Memory allocation failed. 107 */ 108 ARKWEB_ERR_OUT_OF_MEMORY = -13, 109 110 /** 111 * @error The file upload failed because the file's modification time was different 112 * from the expectation. 113 */ 114 ARKWEB_ERR_UPLOAD_FILE_CHANGED = -14, 115 116 /** 117 * @error The socket is not connected. 118 */ 119 ARKWEB_ERR_SOCKET_NOT_CONNECTED = -15, 120 121 /** 122 * @error The file already exists. 123 */ 124 ARKWEB_ERR_FILE_EXISTS = -16, 125 126 /** 127 * @error The path or file name is too long. 128 */ 129 ARKWEB_ERR_FILE_PATH_TOO_LONG = -17, 130 131 /** 132 * @error Not enough room left on the disk. 133 */ 134 ARKWEB_ERR_FILE_NO_SPACE = -18, 135 136 /** 137 * @error The file has a virus. 138 */ 139 ARKWEB_ERR_FILE_VIRUS_INFECTED = -19, 140 141 /** 142 * @error The client chose to block the request. 143 */ 144 ARKWEB_ERR_BLOCKED_BY_CLIENT = -20, 145 146 /** 147 * @error The network changed. 148 */ 149 ARKWEB_ERR_NETWORK_CHANGED = -21, 150 151 /** 152 * @error The request was blocked by the URL block list configured by the domain 153 * administrator. 154 */ 155 ARKWEB_ERR_BLOCKED_BY_ADMINISTRATOR = -22, 156 157 /** 158 * @error The socket is already connected. 159 */ 160 ARKWEB_ERR_SOCKET_CONNECTED = -23, 161 162 /** 163 * @error The upload failed because the upload stream needed to be re-read, due to a 164 * retry or a redirect, but the upload stream doesn't support that operation. 165 */ 166 ARKWEB_ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED = -25, 167 168 /** 169 * @error The request failed because the URLRequestContext is shutting down, or has 170 * been shut down. 171 */ 172 ARKWEB_ERR_CONTEXT_SHUT_DOWN = -26, 173 174 /** 175 * @error The request failed because the response was delivered along with requirements 176 * which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor 177 * checks and 'Cross-Origin-Resource-Policy' for instance). 178 */ 179 ARKWEB_ERR_BLOCKED_BY_RESPONSE = -27, 180 181 /** 182 * @error The request was blocked by system policy disallowing some or all cleartext 183 * requests. 184 */ 185 ARKWEB_ERR_CLEARTEXT_NOT_PERMITTED = -29, 186 187 /** 188 * @error The request was blocked by a Content Security Policy. 189 */ 190 ARKWEB_ERR_BLOCKED_BY_CSP = -30, 191 192 /** 193 * @error The request was blocked because of no H/2 or QUIC session. 194 */ 195 ARKWEB_ERR_H2_OR_QUIC_REQUIRED = -31, 196 197 /** 198 * @error The request was blocked by CORB or ORB. 199 */ 200 ARKWEB_ERR_BLOCKED_BY_ORB = -32, 201 202 /** 203 * @error A connection was closed (corresponding to a TCP FIN). 204 */ 205 ARKWEB_ERR_CONNECTION_CLOSED = -100, 206 207 /** 208 * @error A connection was reset (corresponding to a TCP RST). 209 */ 210 ARKWEB_ERR_CONNECTION_RESET = -101, 211 212 /** 213 * @error A connection attempt was refused. 214 */ 215 ARKWEB_ERR_CONNECTION_REFUSED = -102, 216 217 /** 218 * @error A connection timed out as a result of not receiving an ACK for data sent. 219 * This can include a FIN packet that did not get ACK'd. 220 */ 221 ARKWEB_ERR_CONNECTION_ABORTED = -103, 222 223 /** 224 * @error A connection attempt failed. 225 */ 226 ARKWEB_ERR_CONNECTION_FAILED = -104, 227 228 /** 229 * @error The host name could not be resolved. 230 */ 231 ARKWEB_ERR_NAME_NOT_RESOLVED = -105, 232 233 /** 234 * @error The Internet connection has been lost. 235 */ 236 ARKWEB_ERR_INTERNET_DISCONNECTED = -106, 237 238 /** 239 * @error An SSL protocol error occurred. 240 */ 241 ARKWEB_ERR_SSL_PROTOCOL_ERROR = -107, 242 243 /** 244 * @error The IP address or port number is invalid (e.g., cannot connect to the IP 245 * address 0 or the port 0). 246 */ 247 ARKWEB_ERR_ADDRESS_INVALID = -108, 248 249 /** 250 * @error The IP address is unreachable. This usually means that there is no route to 251 * the specified host or network. 252 */ 253 ARKWEB_ERR_ADDRESS_UNREACHABLE = -109, 254 255 /** 256 * @error The server requested a client certificate for SSL client authentication. 257 */ 258 ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_NEEDED = -110, 259 260 /** 261 * @error A tunnel connection through the proxy could not be established. 262 */ 263 ARKWEB_ERR_TUNNEL_CONNECTION_FAILED = -111, 264 265 /** 266 * @error No SSL protocol versions are enabled. 267 */ 268 ARKWEB_ERR_NO_SSL_VERSIONS_ENABLED = -112, 269 270 /** 271 * @error The client and server don't support a common SSL protocol version or 272 * cipher suite. 273 */ 274 ARKWEB_ERR_SSL_VERSION_OR_CIPHER_MISMATCH = -113, 275 276 /** 277 * @error The server requested a renegotiation (rehandshake). 278 */ 279 ARKWEB_ERR_SSL_RENEGOTIATION_REQUESTED = -114, 280 281 /** 282 * @error The proxy requested authentication (for tunnel establishment, with an 283 * unsupported method. 284 */ 285 ARKWEB_ERR_PROXY_AUTH_UNSUPPORTED = -115, 286 287 /** 288 * @error The SSL handshake failed because of a bad or missing client certificate. 289 */ 290 ARKWEB_ERR_BAD_SSL_CLIENT_AUTH_CERT = -117, 291 292 /** 293 * @error A connection attempt timed out. 294 */ 295 ARKWEB_ERR_CONNECTION_TIMED_OUT = -118, 296 297 /** 298 * @error There are too many pending DNS resolves, so a request in the queue was 299 * aborted. 300 */ 301 ARKWEB_ERR_HOST_RESOLVER_QUEUE_TOO_LARGE = -119, 302 303 /** 304 * @error Failed establishing a connection to the SOCKS proxy server for a target host. 305 */ 306 ARKWEB_ERR_SOCKS_CONNECTION_FAILED = -120, 307 308 /** 309 * @error The SOCKS proxy server failed establishing connection to the target host 310 * because that host is unreachable. 311 */ 312 ARKWEB_ERR_SOCKS_CONNECTION_HOST_UNREACHABLE = -121, 313 314 /** 315 * @error The request to negotiate an alternate protocol failed. 316 */ 317 ARKWEB_ERR_ALPN_NEGOTIATION_FAILED = -122, 318 319 /** 320 * @error The peer sent an SSL no_renegotiation alert message. 321 */ 322 ARKWEB_ERR_SSL_NO_RENEGOTIATION = -123, 323 324 /** 325 * @error Winsock sometimes reports more data written than passed. This is probably 326 * due to a broken LSP. 327 */ 328 ARKWEB_ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES = -124, 329 330 /** 331 * @error An SSL peer sent us a fatal decompression_failure alert. This typically 332 * occurs when a peer selects DEFLATE compression in the mistaken belief that 333 * it supports it. 334 */ 335 ARKWEB_ERR_SSL_DECOMPRESSION_FAILURE_ALERT = -125, 336 337 /** 338 * @error An SSL peer sent us a fatal bad_record_mac alert. This has been observed 339 * from servers with buggy DEFLATE support. 340 */ 341 ARKWEB_ERR_SSL_BAD_RECORD_MAC_ALERT = -126, 342 343 /** 344 * @error The proxy requested authentication (for tunnel establishment). 345 */ 346 ARKWEB_ERR_PROXY_AUTH_REQUESTED = -127, 347 348 /** 349 * @error Could not create a connection to the proxy server. An error occurred 350 * either in resolving its name, or in connecting a socket to it. 351 * Note that this does NOT include failures during the actual "CONNECT" method 352 * of an HTTP proxy. 353 */ 354 ARKWEB_ERR_PROXY_CONNECTION_FAILED = -130, 355 356 /** 357 * @error A mandatory proxy configuration could not be used. Currently this means 358 * that a mandatory PAC script could not be fetched, parsed or executed. 359 */ 360 ARKWEB_ERR_MANDATORY_PROXY_CONFIGURATION_FAILED = -131, 361 362 /** 363 * @error We've hit the max socket limit for the socket pool while preconnecting. We 364 * don't bother trying to preconnect more sockets. 365 */ 366 ARKWEB_ERR_PRECONNECT_MAX_SOCKET_LIMIT = -133, 367 368 /** 369 * @error The permission to use the SSL client certificate's private key was denied. 370 */ 371 ARKWEB_ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED = -134, 372 373 /** 374 * @error The SSL client certificate has no private key. 375 */ 376 ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY = -135, 377 378 /** 379 * @error The certificate presented by the HTTPS Proxy was invalid. 380 */ 381 ARKWEB_ERR_PROXY_CERTIFICATE_INVALID = -136, 382 383 /** 384 * @error An error occurred when trying to do a name resolution (DNS). 385 */ 386 ARKWEB_ERR_NAME_RESOLUTION_FAILED = -137, 387 388 /** 389 * @error Permission to access the network was denied. This is used to distinguish 390 * errors that were most likely caused by a firewall from other access denied 391 * errors. See also ERR_ACCESS_DENIED. 392 */ 393 ARKWEB_ERR_NETWORK_ACCESS_DENIED = -138, 394 395 /** 396 * @error The request throttler module cancelled this request to avoid DDOS. 397 */ 398 ARKWEB_ERR_TEMPORARILY_THROTTLED = -139, 399 400 /** 401 * @error A request to create an SSL tunnel connection through the HTTPS proxy 402 * received a 302 (temporary redirect, response. The response body might 403 * include a description of why the request failed. 404 */ 405 ARKWEB_ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT = -140, 406 407 /** 408 * @error We were unable to sign the CertificateVerify data of an SSL client auth 409 * handshake with the client certificate's private key. 410 * Possible causes for this include the user implicitly or explicitly 411 * denying access to the private key, the private key may not be valid for 412 * signing, the key may be relying on a cached handle which is no longer 413 * valid, or the CSP won't allow arbitrary data to be signed. 414 */ 415 ARKWEB_ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED = -141, 416 417 /** 418 * @error The message was too large for the transport. (for example a UDP message 419 * which exceeds size threshold). 420 */ 421 ARKWEB_ERR_MSG_TOO_BIG = -142, 422 423 /** 424 * @error Websocket protocol error. Indicates that we are terminating the connection 425 * due to a malformed frame or other protocol violation. 426 */ 427 ARKWEB_ERR_WS_PROTOCOL_ERROR = -145, 428 429 /** 430 * @error Returned when attempting to bind an address that is already in use. 431 */ 432 ARKWEB_ERR_ADDRESS_IN_USE = -147, 433 434 /** 435 * @error An operation failed because the SSL handshake has not completed. 436 */ 437 ARKWEB_ERR_SSL_HANDSHAKE_NOT_COMPLETED = -148, 438 439 /** 440 * @error SSL peer's public key is invalid. 441 */ 442 ARKWEB_ERR_SSL_BAD_PEER_PUBLIC_KEY = -149, 443 444 /** 445 * @error The certificate didn't match the built-in public key pins for the host name. 446 * The pins are set in net/http/transport_security_state.cc and require that 447 * one of a set of public keys exist on the path from the leaf to the root. 448 */ 449 ARKWEB_ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN = -150, 450 451 /** 452 * @error Server request for client certificate did not contain any types we support. 453 */ 454 ARKWEB_ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED = -151, 455 456 /** 457 * @error An SSL peer sent us a fatal decrypt_error alert. This typically occurs when 458 * a peer could not correctly verify a signature (in CertificateVerify or 459 * ServerKeyExchange, or validate a Finished message. 460 */ 461 ARKWEB_ERR_SSL_DECRYPT_ERROR_ALERT = -153, 462 463 /** 464 * @error There are too many pending WebSocketJob instances, so the new job was not 465 * pushed to the queue. 466 */ 467 ARKWEB_ERR_WS_THROTTLE_QUEUE_TOO_LARGE = -154, 468 469 /** 470 * @error The SSL server certificate changed in a renegotiation. 471 */ 472 ARKWEB_ERR_SSL_SERVER_CERT_CHANGED = -156, 473 474 /** 475 * @error The SSL server sent us a fatal unrecognized_name alert. 476 */ 477 ARKWEB_ERR_SSL_UNRECOGNIZED_NAME_ALERT = -159, 478 479 /** 480 * @error Failed to set the socket's receive buffer size as requested. 481 */ 482 ARKWEB_ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR = -160, 483 484 /** 485 * @error Failed to set the socket's send buffer size as requested. 486 */ 487 ARKWEB_ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR = -161, 488 489 /** 490 * @error Failed to set the socket's receive buffer size as requested, despite success 491 * return code from setsockopt. 492 */ 493 ARKWEB_ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE = -162, 494 495 /** 496 * @error Failed to set the socket's send buffer size as requested, despite success 497 * return code from setsockopt. 498 */ 499 ARKWEB_ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE = -163, 500 501 /** 502 * @error Failed to import a client certificate from the platform store into the SSL 503 * library. 504 */ 505 ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT = -164, 506 507 /** 508 * @error Resolving a hostname to an IP address list included the IPv4 address 509 * "127.0.53.53". This is a special IP address which ICANN has recommended to 510 * indicate there was a name collision, and alert admins to a potential 511 * problem. 512 */ 513 ARKWEB_ERR_ICANN_NAME_COLLISION = -166, 514 515 /** 516 * @error The SSL server presented a certificate which could not be decoded. This is 517 * not a certificate error code as no X509Certificate object is available. This 518 * error is fatal. 519 */ 520 ARKWEB_ERR_SSL_SERVER_CERT_BAD_FORMAT = -167, 521 522 /** 523 * @error Certificate Transparency: Received a signed tree head that failed to parse. 524 */ 525 ARKWEB_ERR_CT_STH_PARSING_FAILED = -168, 526 527 /** 528 * @error Certificate Transparency: Received a signed tree head whose JSON parsing was 529 * OK but was missing some of the fields. 530 */ 531 ARKWEB_ERR_CT_STH_INCOMPLETE = -169, 532 533 /** 534 * @error The attempt to reuse a connection to send proxy auth credentials failed 535 * before the AuthController was used to generate credentials. The caller should 536 * reuse the controller with a new connection. This error is only used 537 * internally by the network stack. 538 */ 539 ARKWEB_ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH = -170, 540 541 /** 542 * @error Certificate Transparency: Failed to parse the received consistency proof. 543 */ 544 ARKWEB_ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED = -171, 545 546 /** 547 * @error The SSL server required an unsupported cipher suite that has since been 548 * removed. This error will temporarily be signaled on a fallback for one or two 549 * releases immediately following a cipher suite's removal, after which the 550 * fallback will be removed. 551 */ 552 ARKWEB_ERR_SSL_OBSOLETE_CIPHER = -172, 553 554 /** 555 * @error When a WebSocket handshake is done successfully and the connection has been 556 * upgraded, the URLRequest is cancelled with this error code. 557 */ 558 ARKWEB_ERR_WS_UPGRADE = -173, 559 560 /** 561 * @error Socket ReadIfReady support is not implemented. This error should not be user 562 * visible, because the normal Read(, method is used as a fallback. 563 */ 564 ARKWEB_ERR_READ_IF_READY_NOT_IMPLEMENTED = -174, 565 566 /** 567 * @error No socket buffer space is available. 568 */ 569 ARKWEB_ERR_NO_BUFFER_SPACE = -176, 570 571 /** 572 * @error There were no common signature algorithms between our client certificate 573 * private key and the server's preferences. 574 */ 575 ARKWEB_ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS = -177, 576 577 /** 578 * @error TLS 1.3 early data was rejected by the server. This will be received before 579 * any data is returned from the socket. The request should be retried with 580 * early data disabled. 581 */ 582 ARKWEB_ERR_EARLY_DATA_REJECTED = -178, 583 584 /** 585 * @error TLS 1.3 early data was offered, but the server responded with TLS 1.2 or 586 * earlier. This is an internal error code to account for a 587 * backwards-compatibility issue with early data and TLS 1.2. It will be 588 * received before any data is returned from the socket. The request should be 589 * retried with early data disabled. 590 * See https://tools.ietf.org/html/rfc8446#appendix-D.3 for details. 591 */ 592 ARKWEB_ERR_WRONG_VERSION_ON_EARLY_DATA = -179, 593 594 /** 595 * @error TLS 1.3 was enabled, but a lower version was negotiated and the server 596 * returned a value indicating it supported TLS 1.3. This is part of a security 597 * check in TLS 1.3, but it may also indicate the user is behind a buggy 598 * TLS-terminating proxy which implemented TLS 1.2 incorrectly. (See 599 * rhttps://crbug.com/boringssl/226., 600 */ 601 ARKWEB_ERR_TLS13_DOWNGRADE_DETECTED = -180, 602 603 /** 604 * @error The server's certificate has a keyUsage extension incompatible with the 605 * negotiated TLS key exchange method. 606 */ 607 ARKWEB_ERR_SSL_KEY_USAGE_INCOMPATIBLE = -181, 608 609 /** 610 * @error The ECHConfigList fetched over DNS cannot be parsed. 611 */ 612 ARKWEB_ERR_INVALID_ECH_CONFIG_LIST = -182, 613 614 /** 615 * @error ECH was enabled, but the server was unable to decrypt the encrypted 616 * ClientHello. 617 */ 618 ARKWEB_ERR_ECH_NOT_NEGOTIATED = -183, 619 620 /** 621 * @error ECH was enabled, the server was unable to decrypt the encrypted ClientHello, 622 * and additionally did not present a certificate valid for the public name. 623 */ 624 ARKWEB_ERR_ECH_FALLBACK_CERTIFICATE_INVALID = -184, 625 626 /** 627 * @error The server responded with a certificate whose common name did not match 628 * the host name. This could mean: 629 * 1. An attacker has redirected our traffic to their server and is 630 * presenting a certificate for which they know the private key. 631 * 2. The server is misconfigured and responding with the wrong cert. 632 * 3. The user is on a wireless network and is being redirected to the 633 * network's login page. 634 * 4. The OS has used a DNS search suffix and the server doesn't have 635 * a certificate for the abbreviated name in the address bar. 636 */ 637 ARKWEB_ERR_CERT_COMMON_NAME_INVALID = -200, 638 639 /** 640 * @error The server responded with a certificate that, by our clock, appears to 641 * either not yet be valid or to have expired. This could mean: 642 * 1. An attacker is presenting an old certificate for which they have 643 * managed to obtain the private key. 644 * 2. The server is misconfigured and is not presenting a valid cert. 645 * 3. Our clock is wrong. 646 */ 647 ARKWEB_ERR_CERT_DATE_INVALID = -201, 648 649 /** 650 * @error The server responded with a certificate that is signed by an authority 651 * we don't trust. The could mean: 652 * 1. An attacker has substituted the real certificate for a cert that 653 * contains their public key and is signed by their cousin. 654 * 2. The server operator has a legitimate certificate from a CA we don't 655 * know about, but should trust. 656 * 3. The server is presenting a self-signed certificate, providing no 657 * defense against active attackers (but foiling passive attackers). 658 */ 659 ARKWEB_ERR_CERT_AUTHORITY_INVALID = -202, 660 661 /** 662 * @error The server responded with a certificate that contains errors. 663 * This error is not recoverable. 664 * MSDN describes this error as follows: 665 * "The SSL certificate contains errors." 666 * NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency, 667 * use that code instead of this one from now on. 668 */ 669 ARKWEB_ERR_CERT_CONTAINS_ERRORS = -203, 670 671 /** 672 * @error The certificate has no mechanism for determining if it is revoked. In 673 * effect, this certificate cannot be revoked. 674 */ 675 ARKWEB_ERR_CERT_NO_REVOCATION_MECHANISM = -204, 676 677 /** 678 * @error Revocation information for the security certificate for this site is not 679 * available. This could mean: 680 * 1. An attacker has compromised the private key in the certificate and is 681 * blocking our attempt to find out that the cert was revoked. 682 * 2. The certificate is unrevoked, but the revocation server is busy or 683 * unavailable. 684 */ 685 ARKWEB_ERR_CERT_UNABLE_TO_CHECK_REVOCATION = -205, 686 687 /** 688 * @error The server responded with a certificate has been revoked. 689 * We have the capability to ignore this error, but it is probably not the 690 * thing to do. 691 */ 692 ARKWEB_ERR_CERT_REVOKED = -206, 693 694 /** 695 * @error The server responded with a certificate that is invalid. 696 * This error is not recoverable. 697 * MSDN describes this error as follows: 698 * "The SSL certificate is invalid." 699 */ 700 ARKWEB_ERR_CERT_INVALID = -207, 701 702 /** 703 * @error The server responded with a certificate that is signed using a weak 704 * signature algorithm. 705 */ 706 ARKWEB_ERR_CERT_WEAK_SIGNATURE_ALGORITHM = -208, 707 708 /** 709 * @error The host name specified in the certificate is not unique. 710 */ 711 ARKWEB_ERR_CERT_NON_UNIQUE_NAME = -210, 712 713 /** 714 * @error The server responded with a certificate that contains a weak key (e.g. 715 * a too-small RSA key). 716 */ 717 ARKWEB_ERR_CERT_WEAK_KEY = -211, 718 719 /** 720 * @error The certificate claimed DNS names that are in violation of name constraints. 721 */ 722 ARKWEB_ERR_CERT_NAME_CONSTRAINT_VIOLATION = -212, 723 724 /** 725 * @error The certificate's validity period is too long. 726 */ 727 ARKWEB_ERR_CERT_VALIDITY_TOO_LONG = -213, 728 729 /** 730 * @error Certificate Transparency was required for this connection, but the server 731 * did not provide CT information that complied with the policy. 732 */ 733 ARKWEB_ERR_CERTIFICATE_TRANSPARENCY_REQUIRED = -214, 734 735 /** 736 * @error The certificate chained to a legacy Symantec root that is no longer trusted. 737 */ 738 ARKWEB_ERR_CERT_SYMANTEC_LEGACY = -215, 739 740 /** 741 * @error The certificate is known to be used for interception by an entity other 742 * the device owner. 743 */ 744 ARKWEB_ERR_CERT_KNOWN_INTERCEPTION_BLOCKED = -217, 745 746 /** 747 * @error The connection uses an obsolete version of SSL/TLS or cipher. 748 */ 749 ARKWEB_ERR_SSL_OBSOLETE_VERSION_OR_CIPHER = -218, 750 751 /** 752 * @error The value immediately past the last certificate error code. 753 */ 754 ARKWEB_ERR_CERT_END = -219, 755 756 /** 757 * @error The URL is invalid. 758 */ 759 ARKWEB_ERR_INVALID_URL = -300, 760 761 /** 762 * @error The scheme of the URL is disallowed. 763 */ 764 ARKWEB_ERR_DISALLOWED_URL_SCHEME = -301, 765 766 /** 767 * @error The scheme of the URL is unknown. 768 */ 769 ARKWEB_ERR_UNKNOWN_URL_SCHEME = -302, 770 771 /** 772 * @error Attempting to load an URL resulted in a redirect to an invalid URL. 773 */ 774 ARKWEB_ERR_INVALID_REDIRECT = -303, 775 776 /** 777 * @error Attempting to load an URL resulted in too many redirects. 778 */ 779 ARKWEB_ERR_TOO_MANY_REDIRECTS = -310, 780 781 /** 782 * @error Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect 783 * to file:// is considered unsafe). 784 */ 785 ARKWEB_ERR_UNSAFE_REDIRECT = -311, 786 787 /** 788 * @error Attempting to load an URL with an unsafe port number. 789 */ 790 ARKWEB_ERR_UNSAFE_PORT = -312, 791 792 /** 793 * @error The server's response was invalid. 794 */ 795 ARKWEB_ERR_INVALID_RESPONSE = -320, 796 797 /** 798 * @error Error in chunked transfer encoding. 799 */ 800 ARKWEB_ERR_INVALID_CHUNKED_ENCODING = -321, 801 802 /** 803 * @error The server did not support the request method. 804 */ 805 ARKWEB_ERR_METHOD_UNSUPPORTED = -322, 806 807 /** 808 * @error The response was 407 (Proxy Authentication Required,, yet we did not send 809 * the request to a proxy. 810 */ 811 ARKWEB_ERR_UNEXPECTED_PROXY_AUTH = -323, 812 813 /** 814 * @error The server closed the connection without sending any data. 815 */ 816 ARKWEB_ERR_EMPTY_RESPONSE = -324, 817 818 /** 819 * @error The headers section of the response is too large. 820 */ 821 ARKWEB_ERR_RESPONSE_HEADERS_TOO_BIG = -325, 822 823 /** 824 * @error The evaluation of the PAC script failed. 825 */ 826 ARKWEB_ERR_PAC_SCRIPT_FAILED = -327, 827 828 /** 829 * @error The response was 416 (Requested range not satisfiable, and the server cannot 830 * satisfy the range requested. 831 */ 832 ARKWEB_ERR_REQUEST_RANGE_NOT_SATISFIABLE = -328, 833 834 /** 835 * @error The identity used for authentication is invalid. 836 */ 837 ARKWEB_ERR_MALFORMED_IDENTITY = -329, 838 839 /** 840 * @error Content decoding of the response body failed. 841 */ 842 ARKWEB_ERR_CONTENT_DECODING_FAILED = -330, 843 844 /** 845 * @error An operation could not be completed because all network IO 846 * is suspended. 847 */ 848 ARKWEB_ERR_NETWORK_IO_SUSPENDED = -331, 849 850 /** 851 * @error FLIP data received without receiving a SYN_REPLY on the stream. 852 */ 853 ARKWEB_ERR_SYN_REPLY_NOT_RECEIVED = -332, 854 855 /** 856 * @error Converting the response to target encoding failed. 857 */ 858 ARKWEB_ERR_ENCODING_CONVERSION_FAILED = -333, 859 860 /** 861 * @error The server sent an FTP directory listing in a format we do not understand. 862 */ 863 ARKWEB_ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT = -334, 864 865 /** 866 * @error There are no supported proxies in the provided list. 867 */ 868 ARKWEB_ERR_NO_SUPPORTED_PROXIES = -336, 869 870 /** 871 * @error There is an HTTP/2 protocol error. 872 */ 873 ARKWEB_ERR_HTTP2_PROTOCOL_ERROR = -337, 874 875 /** 876 * @error Credentials could not be established during HTTP Authentication. 877 */ 878 ARKWEB_ERR_INVALID_AUTH_CREDENTIALS = -338, 879 880 /** 881 * @error An HTTP Authentication scheme was tried which is not supported on this 882 * machine. 883 */ 884 ARKWEB_ERR_UNSUPPORTED_AUTH_SCHEME = -339, 885 886 /** 887 * @error Detecting the encoding of the response failed. 888 */ 889 ARKWEB_ERR_ENCODING_DETECTION_FAILED = -340, 890 891 /** 892 * @error (GSSAPI, No Kerberos credentials were available during HTTP Authentication. 893 */ 894 ARKWEB_ERR_MISSING_AUTH_CREDENTIALS = -341, 895 896 /** 897 * @error An unexpected, but documented, SSPI or GSSAPI status code was returned. 898 */ 899 ARKWEB_ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS = -342, 900 901 /** 902 * @error The environment was not set up correctly for authentication (for 903 * example, no KDC could be found or the principal is unknown. 904 */ 905 ARKWEB_ERR_MISCONFIGURED_AUTH_ENVIRONMENT = -343, 906 907 /** 908 * @error An undocumented SSPI or GSSAPI status code was returned. 909 */ 910 ARKWEB_ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS = -344, 911 912 /** 913 * @error The HTTP response was too big to drain. 914 */ 915 ARKWEB_ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN = -345, 916 917 /** 918 * @error The HTTP response contained multiple distinct Content-Length headers. 919 */ 920 ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH = -346, 921 922 /** 923 * @error HTTP/2 headers have been received, but not all of them - status or version 924 * headers are missing, so we're expecting additional frames to complete them. 925 */ 926 ARKWEB_ERR_INCOMPLETE_HTTP2_HEADERS = -347, 927 928 /** 929 * @error No PAC URL configuration could be retrieved from DHCP. This can indicate 930 * either a failure to retrieve the DHCP configuration, or that there was no 931 * PAC URL configured in DHCP. 932 */ 933 ARKWEB_ERR_PAC_NOT_IN_DHCP = -348, 934 935 /** 936 * @error The HTTP response contained multiple Content-Disposition headers. 937 */ 938 ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION = -349, 939 940 /** 941 * @error The HTTP response contained multiple Location headers. 942 */ 943 ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION = -350, 944 945 /** 946 * @error HTTP/2 server refused the request without processing, and sent either a 947 * GOAWAY frame with error code NO_ERROR and Last-Stream-ID lower than the 948 * stream id corresponding to the request indicating that this request has not 949 * been processed yet, or a RST_STREAM frame with error code REFUSED_STREAM. 950 * Client MAY retry (on a different connection). See RFC7540 Section 8.1.4. 951 */ 952 ARKWEB_ERR_HTTP2_SERVER_REFUSED_STREAM = -351, 953 954 /** 955 * @error HTTP/2 server didn't respond to the PING message. 956 */ 957 ARKWEB_ERR_HTTP2_PING_FAILED = -352, 958 959 /** 960 * @error The HTTP response body transferred fewer bytes than were advertised by the 961 * Content-Length header when the connection is closed. 962 */ 963 ARKWEB_ERR_CONTENT_LENGTH_MISMATCH = -354, 964 965 /** 966 * @error The HTTP response body is transferred with Chunked-Encoding, but the 967 * terminating zero-length chunk was never sent when the connection is closed. 968 */ 969 ARKWEB_ERR_INCOMPLETE_CHUNKED_ENCODING = -355, 970 971 /** 972 * @error There is a QUIC protocol error. 973 */ 974 ARKWEB_ERR_QUIC_PROTOCOL_ERROR = -356, 975 976 /** 977 * @error The HTTP headers were truncated by an EOF. 978 */ 979 ARKWEB_ERR_RESPONSE_HEADERS_TRUNCATED = -357, 980 981 /** 982 * @error The QUIC crypto handshake failed. This means that the server was unable 983 * to read any requests sent, so they may be resent. 984 */ 985 ARKWEB_ERR_QUIC_HANDSHAKE_FAILED = -358, 986 987 /** 988 * @error Transport security is inadequate for the HTTP/2 version. 989 */ 990 ARKWEB_ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY = -360, 991 992 /** 993 * @error The peer violated HTTP/2 flow control. 994 */ 995 ARKWEB_ERR_HTTP2_FLOW_CONTROL_ERROR = -361, 996 997 /** 998 * @error The peer sent an improperly sized HTTP/2 frame. 999 */ 1000 ARKWEB_ERR_HTTP2_FRAME_SIZE_ERROR = -362, 1001 1002 /** 1003 * @error Decoding or encoding of compressed HTTP/2 headers failed. 1004 */ 1005 ARKWEB_ERR_HTTP2_COMPRESSION_ERROR = -363, 1006 1007 /** 1008 * @error Proxy Auth Requested without a valid Client Socket Handle. 1009 */ 1010 ARKWEB_ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION = -364, 1011 1012 /** 1013 * @error HTTP_1_1_REQUIRED error code received on HTTP/2 session. 1014 */ 1015 ARKWEB_ERR_HTTP_1_1_REQUIRED = -365, 1016 1017 /** 1018 * @error HTTP_1_1_REQUIRED error code received on HTTP/2 session to proxy. 1019 */ 1020 ARKWEB_ERR_PROXY_HTTP_1_1_REQUIRED = -366, 1021 1022 /** 1023 * @error The PAC script terminated fatally and must be reloaded. 1024 */ 1025 ARKWEB_ERR_PAC_SCRIPT_TERMINATED = -367, 1026 1027 /** 1028 * @error The server was expected to return an HTTP/1.x response, but did not. Rather 1029 * than treat it as HTTP/0.9, this error is returned. 1030 */ 1031 ARKWEB_ERR_INVALID_HTTP_RESPONSE = -370, 1032 1033 /** 1034 * @error Initializing content decoding failed. 1035 */ 1036 ARKWEB_ERR_CONTENT_DECODING_INIT_FAILED = -371, 1037 1038 /** 1039 * @error Received HTTP/2 RST_STREAM frame with NO_ERROR error code. This error should 1040 * be handled internally by HTTP/2 code, and should not make it above the 1041 * SpdyStream layer. 1042 */ 1043 ARKWEB_ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED = -372, 1044 1045 /** 1046 * @error The pushed stream claimed by the request is no longer available. 1047 */ 1048 ARKWEB_ERR_HTTP2_PUSHED_STREAM_NOT_AVAILABLE = -373, 1049 1050 /** 1051 * @error A pushed stream was claimed and later reset by the server. When this happens, 1052 * the request should be retried. 1053 */ 1054 ARKWEB_ERR_HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER = -374, 1055 1056 /** 1057 * @error An HTTP transaction was retried too many times due for authentication or 1058 * invalid certificates. 1059 */ 1060 ARKWEB_ERR_TOO_MANY_RETRIES = -375, 1061 1062 /** 1063 * @error Received an HTTP/2 frame on a closed stream. 1064 */ 1065 ARKWEB_ERR_HTTP2_STREAM_CLOSED = -376, 1066 1067 /** 1068 * @error Client is refusing an HTTP/2 stream. 1069 */ 1070 ARKWEB_ERR_HTTP2_CLIENT_REFUSED_STREAM = -377, 1071 1072 /** 1073 * @error A pushed HTTP/2 stream was claimed by a request based on matching URL and 1074 * request headers, but the pushed response headers do not match the request. 1075 */ 1076 ARKWEB_ERR_HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH = -378, 1077 1078 /** 1079 * @error The server returned a non-2xx HTTP response code. 1080 */ 1081 ARKWEB_ERR_HTTP_RESPONSE_CODE_FAILURE = -379, 1082 1083 /** 1084 * @error The certificate presented on a QUIC connection does not chain to a known root 1085 * and the origin connected to is not on a list of domains where unknown roots 1086 * are allowed. 1087 */ 1088 ARKWEB_ERR_QUIC_UNKNOWN_CERT_ROOT = -380, 1089 1090 /** 1091 * @error A GOAWAY frame has been received indicating that the request has not been 1092 * processed and is therefore safe to retry on a different connection. 1093 */ 1094 ARKWEB_ERR_QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED = -381, 1095 1096 /** 1097 * @error The ACCEPT_CH restart has been triggered too many times. 1098 */ 1099 ARKWEB_ERR_TOO_MANY_ACCEPT_CH_RESTARTS = -382, 1100 1101 /** 1102 * @error The IP address space of the remote endpoint differed from the previous 1103 * observed value during the same request. Any cache entry for the affected 1104 * request should be invalidated. 1105 */ 1106 ARKWEB_ERR_INCONSISTENT_IP_ADDRESS_SPACE = -383, 1107 1108 /** 1109 * @error The IP address space of the cached remote endpoint is blocked by local 1110 * network access check. 1111 */ 1112 ARKWEB_ERR_CACHED_IP_ADDRESS_SPACE_BLOCKED_BY_LOCAL_NETWORK_ACCESS_POLICY = -384, 1113 1114 /** 1115 * @error The cache does not have the requested entry. 1116 */ 1117 ARKWEB_ERR_CACHE_MISS = -400, 1118 1119 /** 1120 * @error Unable to read from the disk cache. 1121 */ 1122 ARKWEB_ERR_CACHE_READ_FAILURE = -401, 1123 1124 /** 1125 * @error Unable to write to the disk cache. 1126 */ 1127 ARKWEB_ERR_CACHE_WRITE_FAILURE = -402, 1128 1129 /** 1130 * @error The operation is not supported for this entry. 1131 */ 1132 ARKWEB_ERR_CACHE_OPERATION_UNSUPPORTED = -403, 1133 1134 /** 1135 * @error The disk cache is unable to open this entry. 1136 */ 1137 ARKWEB_ERR_CACHE_OPEN_FAILURE = -404, 1138 1139 /** 1140 * @error The disk cache is unable to create this entry. 1141 */ 1142 ARKWEB_ERR_CACHE_CREATE_FAILURE = -405, 1143 1144 /** 1145 * @error Multiple transactions are racing to create disk cache entries. 1146 */ 1147 ARKWEB_ERR_CACHE_RACE = -406, 1148 1149 /** 1150 * @error The cache was unable to read a checksum record on an entry. 1151 */ 1152 ARKWEB_ERR_CACHE_CHECKSUM_READ_FAILURE = -407, 1153 1154 /** 1155 * @error The cache found an entry with an invalid checksum. 1156 */ 1157 ARKWEB_ERR_CACHE_CHECKSUM_MISMATCH = -408, 1158 1159 /** 1160 * @error Internal error code for the HTTP cache. 1161 */ 1162 ARKWEB_ERR_CACHE_LOCK_TIMEOUT = -409, 1163 1164 /** 1165 * @error Received a challenge after the transaction has read some data, and the 1166 * credentials aren't available. 1167 */ 1168 ARKWEB_ERR_CACHE_AUTH_FAILURE_AFTER_READ = -410, 1169 1170 /** 1171 * @error Internal not-quite error code for the HTTP cache. 1172 */ 1173 ARKWEB_ERR_CACHE_ENTRY_NOT_SUITABLE = -411, 1174 1175 /** 1176 * @error The disk cache is unable to doom this entry. 1177 */ 1178 ARKWEB_ERR_CACHE_DOOM_FAILURE = -412, 1179 1180 /** 1181 * @error The disk cache is unable to open or create this entry. 1182 */ 1183 ARKWEB_ERR_CACHE_OPEN_OR_CREATE_FAILURE = -413, 1184 1185 /** 1186 * @error The server's response was insecure (e.g. there was a cert error). 1187 */ 1188 ARKWEB_ERR_INSECURE_RESPONSE = -501, 1189 1190 /** 1191 * @error An attempt to import a client certificate failed, as the user's key 1192 * database lacked a corresponding private key. 1193 */ 1194 ARKWEB_ERR_NO_PRIVATE_KEY_FOR_CERT = -502, 1195 1196 /** 1197 * @error An error adding a certificate to the OS certificate database. 1198 */ 1199 ARKWEB_ERR_ADD_USER_CERT_FAILED = -503, 1200 1201 /** 1202 * @error An error occurred while handling a signed exchange. 1203 */ 1204 ARKWEB_ERR_INVALID_SIGNED_EXCHANGE = -504, 1205 1206 /** 1207 * @error An error occurred while handling a Web Bundle source. 1208 */ 1209 ARKWEB_ERR_INVALID_WEB_BUNDLE = -505, 1210 1211 /** 1212 * @error A Trust Tokens protocol operation-executing request failed for one of a 1213 * number of reasons (precondition failure, internal error, bad response). 1214 */ 1215 ARKWEB_ERR_TRUST_TOKEN_OPERATION_FAILED = -506, 1216 1217 /** 1218 * @error When handling a Trust Tokens protocol operation-executing request, the system 1219 * was able to execute the request's Trust Tokens operation without sending the 1220 * request to its destination. 1221 */ 1222 ARKWEB_ERR_TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST = -507, 1223 1224 /** 1225 * @error A generic error for failed FTP control connection command. 1226 * If possible, please use or add a more specific error code. 1227 */ 1228 ARKWEB_ERR_FTP_FAILED = -601, 1229 1230 /** 1231 * @error The server cannot fulfill the request at this point. This is a temporary error. 1232 * FTP response code 421. 1233 */ 1234 ARKWEB_ERR_FTP_SERVICE_UNAVAILABLE = -602, 1235 1236 /** 1237 * @error The server has aborted the transfer. 1238 * FTP response code 426. 1239 */ 1240 ARKWEB_ERR_FTP_TRANSFER_ABORTED = -603, 1241 1242 /** 1243 * @error The file is busy, or some other temporary error condition on opening the file. 1244 * FTP response code 450. 1245 */ 1246 ARKWEB_ERR_FTP_FILE_BUSY = -604, 1247 1248 /** 1249 * @error Server rejected our command because of syntax errors. 1250 * FTP response codes 500, 501. 1251 */ 1252 ARKWEB_ERR_FTP_SYNTAX_ERROR = -605, 1253 1254 /** 1255 * @error Server does not support the command we issued. 1256 * FTP response codes 502, 504. 1257 */ 1258 ARKWEB_ERR_FTP_COMMAND_UNSUPPORTED = -606, 1259 1260 /** 1261 * @error Server rejected our command because we didn't issue the commands in right order. 1262 * FTP response code 503. 1263 */ 1264 ARKWEB_ERR_FTP_BAD_COMMAND_SEQUENCE = -607, 1265 1266 /** 1267 * @error PKCS #12 import failed due to incorrect password. 1268 */ 1269 ARKWEB_ERR_PKCS12_IMPORT_BAD_PASSWORD = -701, 1270 1271 /** 1272 * @error PKCS #12 import failed due to other error. 1273 */ 1274 ARKWEB_ERR_PKCS12_IMPORT_FAILED = -702, 1275 1276 /** 1277 * @error CA import failed - not a CA cert. 1278 */ 1279 ARKWEB_ERR_IMPORT_CA_CERT_NOT_CA = -703, 1280 1281 /** 1282 * @error Import failed - certificate already exists in database. 1283 */ 1284 ARKWEB_ERR_IMPORT_CERT_ALREADY_EXISTS = -704, 1285 1286 /** 1287 * @error CA import failed due to some other error. 1288 */ 1289 ARKWEB_ERR_IMPORT_CA_CERT_FAILED = -705, 1290 1291 /** 1292 * @error Server certificate import failed due to some internal error. 1293 */ 1294 ARKWEB_ERR_IMPORT_SERVER_CERT_FAILED = -706, 1295 1296 /** 1297 * @error PKCS #12 import failed due to invalid MAC. 1298 */ 1299 ARKWEB_ERR_PKCS12_IMPORT_INVALID_MAC = -707, 1300 1301 /** 1302 * @error PKCS #12 import failed due to invalid/corrupt file. 1303 */ 1304 ARKWEB_ERR_PKCS12_IMPORT_INVALID_FILE = -708, 1305 1306 /** 1307 * @error PKCS #12 import failed due to unsupported features. 1308 */ 1309 ARKWEB_ERR_PKCS12_IMPORT_UNSUPPORTED = -709, 1310 1311 /** 1312 * @error Key generation failed. 1313 */ 1314 ARKWEB_ERR_KEY_GENERATION_FAILED = -710, 1315 1316 /** 1317 * @error Failure to export private key. 1318 */ 1319 ARKWEB_ERR_PRIVATE_KEY_EXPORT_FAILED = -712, 1320 1321 /** 1322 * @error Self-signed certificate generation failed. 1323 */ 1324 ARKWEB_ERR_SELF_SIGNED_CERT_GENERATION_FAILED = -713, 1325 1326 /** 1327 * @error The certificate database changed in some way. 1328 */ 1329 ARKWEB_ERR_CERT_DATABASE_CHANGED = -714, 1330 1331 /** 1332 * @error The certificate verifier configuration changed in some way. 1333 */ 1334 ARKWEB_ERR_CERT_VERIFIER_CHANGED = -716, 1335 1336 /** 1337 * @error DNS resolver received a malformed response. 1338 */ 1339 ARKWEB_ERR_DNS_MALFORMED_RESPONSE = -800, 1340 1341 /** 1342 * @error DNS server requires TCP. 1343 */ 1344 ARKWEB_ERR_DNS_SERVER_REQUIRES_TCP = -801, 1345 1346 /** 1347 * @error DNS server failed. This error is returned for all of the following 1348 * error conditions: 1349 * 1 - Format error - The name server was unable to interpret the query. 1350 * 2 - Server failure - The name server was unable to process this query 1351 * due to a problem with the name server. 1352 * 4 - Not Implemented - The name server does not support the requested 1353 * kind of query. 1354 * 5 - Refused - The name server refuses to perform the specified 1355 * operation for policy reasons. 1356 */ 1357 ARKWEB_ERR_DNS_SERVER_FAILED = -802, 1358 1359 /** 1360 * @error DNS transaction timed out. 1361 */ 1362 ARKWEB_ERR_DNS_TIMED_OUT = -803, 1363 1364 /** 1365 * @error The entry was not found in cache or other local sources, for lookups where 1366 * only local sources were queried. 1367 */ 1368 ARKWEB_ERR_DNS_CACHE_MISS = -804, 1369 1370 /** 1371 * @error Suffix search list rules prevent resolution of the given host name. 1372 */ 1373 ARKWEB_ERR_DNS_SEARCH_EMPTY = -805, 1374 1375 /** 1376 * @error Failed to sort addresses according to RFC3484. 1377 */ 1378 ARKWEB_ERR_DNS_SORT_ERROR = -806, 1379 1380 /** 1381 * @error Failed to resolve the hostname of a DNS-over-HTTPS server. 1382 */ 1383 ARKWEB_ERR_DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED = -808, 1384 1385 /** 1386 * @error DNS identified the request as disallowed for insecure connection (http/ws). 1387 * Error should be handled as if an HTTP redirect was received to redirect to 1388 * https or wss. 1389 */ 1390 ARKWEB_ERR_DNS_NAME_HTTPS_ONLY = -809, 1391 1392 /** 1393 * @error All DNS requests associated with this job have been cancelled. 1394 */ 1395 ARKWEB_ERR_DNS_REQUEST_CANCELED = -810, 1396 1397 /** 1398 * @error The hostname resolution of HTTPS record was expected to be resolved with 1399 * alpn values of supported protocols, but did not. 1400 */ 1401 ARKWEB_ERR_DNS_NO_MATCHING_SUPPORTED_ALPN = -811, 1402 } ArkWeb_NetError; 1403 1404 #endif // ARKWEB_NET_ERROR_LIST_H 1405 /** @} */ 1406