Skip to main content

ohos_web_binding/protocol/
net_error.rs

1use ohos_web_sys::*;
2
3use ohos_enum_derive::EnumFrom;
4
5#[derive(Debug, Clone, Copy, PartialEq, Eq, EnumFrom)]
6#[config(ArkWeb_NetError, "ArkWeb_NetError_ARKWEB_ERR_")]
7pub enum NetError {
8    #[prefix("ArkWeb_NetError_ARKWEB_NET_")]
9    Ok = 0,
10    IoPending = -1,
11    Failed = -2,
12    Aborted = -3,
13    InvalidArgument = -4,
14    InvalidHandle = -5,
15    FileNotFound = -6,
16    TimedOut = -7,
17    FileTooLarge = -8,
18    Unexpected = -9,
19    AccessDenied = -10,
20    NotImplemented = -11,
21    InsufficientResources = -12,
22    OutOfMemory = -13,
23    UploadFileChanged = -14,
24    SocketNotConnected = -15,
25    FileExists = -16,
26    FilePathTooLong = -17,
27    FileNoSpace = -18,
28    FileVirusInfected = -19,
29    BlockedByClient = -20,
30    NetworkChanged = -21,
31    BlockedByAdministrator = -22,
32    SocketConnected = -23,
33    UploadStreamRewindNotSupported = -25,
34    ContextShutDown = -26,
35    BlockedByResponse = -27,
36    CleartextNotPermitted = -29,
37    BlockedByCsp = -30,
38    #[suffix("H2_OR_QUIC_REQUIRED")]
39    H2OrQuicRequired = -31,
40    BlockedByOrb = -32,
41    ConnectionClosed = -100,
42    ConnectionReset = -101,
43    ConnectionRefused = -102,
44    ConnectionAborted = -103,
45    ConnectionFailed = -104,
46    NameNotResolved = -105,
47    InternetDisconnected = -106,
48    SslProtocolError = -107,
49    AddressInvalid = -108,
50    AddressUnreachable = -109,
51    SslClientAuthCertNeeded = -110,
52    TunnelConnectionFailed = -111,
53    NoSslVersionsEnabled = -112,
54    SslVersionOrCipherMismatch = -113,
55    SslRenegotiationRequested = -114,
56    ProxyAuthUnsupported = -115,
57    BadSslClientAuthCert = -117,
58    ConnectionTimedOut = -118,
59    HostResolverQueueTooLarge = -119,
60    SocksConnectionFailed = -120,
61    SocksConnectionHostUnreachable = -121,
62    AlpnNegotiationFailed = -122,
63    SslNoRenegotiation = -123,
64    WinsockUnexpectedWrittenBytes = -124,
65    SslDecompressionFailureAlert = -125,
66    SslBadRecordMacAlert = -126,
67    ProxyAuthRequested = -127,
68    ProxyConnectionFailed = -130,
69    MandatoryProxyConfigurationFailed = -131,
70    PreconnectMaxSocketLimit = -133,
71    SslClientAuthPrivateKeyAccessDenied = -134,
72    SslClientAuthCertNoPrivateKey = -135,
73    ProxyCertificateInvalid = -136,
74    NameResolutionFailed = -137,
75    NetworkAccessDenied = -138,
76    TemporarilyThrottled = -139,
77    HttpsProxyTunnelResponseRedirect = -140,
78    SslClientAuthSignatureFailed = -141,
79    MsgTooBig = -142,
80    WsProtocolError = -145,
81    AddressInUse = -147,
82    SslHandshakeNotCompleted = -148,
83    SslBadPeerPublicKey = -149,
84    SslPinnedKeyNotInCertChain = -150,
85    ClientAuthCertTypeUnsupported = -151,
86    SslDecryptErrorAlert = -153,
87    WsThrottleQueueTooLarge = -154,
88    SslServerCertChanged = -156,
89    SslUnrecognizedNameAlert = -159,
90    SocketSetReceiveBufferSizeError = -160,
91    SocketSetSendBufferSizeError = -161,
92    SocketReceiveBufferSizeUnchangeable = -162,
93    SocketSendBufferSizeUnchangeable = -163,
94    SslClientAuthCertBadFormat = -164,
95    IcannNameCollision = -166,
96    SslServerCertBadFormat = -167,
97    CtSthParsingFailed = -168,
98    CtSthIncomplete = -169,
99    UnableToReuseConnectionForProxyAuth = -170,
100    CtConsistencyProofParsingFailed = -171,
101    SslObsoleteCipher = -172,
102    WsUpgrade = -173,
103    ReadIfReadyNotImplemented = -174,
104    NoBufferSpace = -176,
105    SslClientAuthNoCommonAlgorithms = -177,
106    EarlyDataRejected = -178,
107    WrongVersionOnEarlyData = -179,
108    #[suffix("TLS13_DOWNGRADE_DETECTED")]
109    Tls13DowngradeDetected = -180,
110    SslKeyUsageIncompatible = -181,
111    InvalidEchConfigList = -182,
112    EchNotNegotiated = -183,
113    EchFallbackCertificateInvalid = -184,
114    CertCommonNameInvalid = -200,
115    CertDateInvalid = -201,
116    CertAuthorityInvalid = -202,
117    CertContainsErrors = -203,
118    CertNoRevocationMechanism = -204,
119    CertUnableToCheckRevocation = -205,
120    CertRevoked = -206,
121    CertInvalid = -207,
122    CertWeakSignatureAlgorithm = -208,
123    CertNonUniqueName = -210,
124    CertWeakKey = -211,
125    CertNameConstraintViolation = -212,
126    CertValidityTooLong = -213,
127    CertificateTransparencyRequired = -214,
128    CertSymantecLegacy = -215,
129    CertKnownInterceptionBlocked = -217,
130    SslObsoleteVersionOrCipher = -218,
131    CertEnd = -219,
132    InvalidUrl = -300,
133    DisallowedUrlScheme = -301,
134    UnknownUrlScheme = -302,
135    InvalidRedirect = -303,
136    TooManyRedirects = -310,
137    UnsafeRedirect = -311,
138    UnsafePort = -312,
139    InvalidResponse = -320,
140    InvalidChunkedEncoding = -321,
141    MethodUnsupported = -322,
142    UnexpectedProxyAuth = -323,
143    EmptyResponse = -324,
144    ResponseHeadersTooBig = -325,
145    PacScriptFailed = -327,
146    RequestRangeNotSatisfiable = -328,
147    MalformedIdentity = -329,
148    ContentDecodingFailed = -330,
149    NetworkIoSuspended = -331,
150    SynReplyNotReceived = -332,
151    EncodingConversionFailed = -333,
152    UnrecognizedFtpDirectoryListingFormat = -334,
153    NoSupportedProxies = -336,
154    #[suffix("HTTP2_PROTOCOL_ERROR")]
155    Http2ProtocolError = -337,
156    InvalidAuthCredentials = -338,
157    UnsupportedAuthScheme = -339,
158    EncodingDetectionFailed = -340,
159    MissingAuthCredentials = -341,
160    UnexpectedSecurityLibraryStatus = -342,
161    MisconfiguredAuthEnvironment = -343,
162    UndocumentedSecurityLibraryStatus = -344,
163    ResponseBodyTooBigToDrain = -345,
164    ResponseHeadersMultipleContentLength = -346,
165    #[suffix("INCOMPLETE_HTTP2_HEADERS")]
166    IncompleteHttp2Headers = -347,
167    PacNotInDhcp = -348,
168    ResponseHeadersMultipleContentDisposition = -349,
169    ResponseHeadersMultipleLocation = -350,
170    #[suffix("HTTP2_SERVER_REFUSED_STREAM")]
171    Http2ServerRefusedStream = -351,
172    #[suffix("HTTP2_PING_FAILED")]
173    Http2PingFailed = -352,
174    ContentLengthMismatch = -354,
175    IncompleteChunkedEncoding = -355,
176    QuicProtocolError = -356,
177    ResponseHeadersTruncated = -357,
178    QuicHandshakeFailed = -358,
179    #[suffix("HTTP2_INADEQUATE_TRANSPORT_SECURITY")]
180    Http2InadequateTransportSecurity = -360,
181    #[suffix("HTTP2_FLOW_CONTROL_ERROR")]
182    Http2FlowControlError = -361,
183    #[suffix("HTTP2_FRAME_SIZE_ERROR")]
184    Http2FrameSizeError = -362,
185    #[suffix("HTTP2_COMPRESSION_ERROR")]
186    Http2CompressionError = -363,
187    ProxyAuthRequestedWithNoConnection = -364,
188    #[suffix("HTTP_1_1_REQUIRED")]
189    Http11Required = -365,
190    #[suffix("PROXY_HTTP_1_1_REQUIRED")]
191    ProxyHttp11Required = -366,
192    PacScriptTerminated = -367,
193    InvalidHttpResponse = -370,
194    ContentDecodingInitFailed = -371,
195    #[suffix("HTTP2_RST_STREAM_NO_ERROR_RECEIVED")]
196    Http2RstStreamNoErrorReceived = -372,
197    #[suffix("HTTP2_PUSHED_STREAM_NOT_AVAILABLE")]
198    Http2PushedStreamNotAvailable = -373,
199    #[suffix("HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER")]
200    Http2ClaimedPushedStreamResetByServer = -374,
201    TooManyRetries = -375,
202    #[suffix("HTTP2_STREAM_CLOSED")]
203    Http2StreamClosed = -376,
204    #[suffix("HTTP2_CLIENT_REFUSED_STREAM")]
205    Http2ClientRefusedStream = -377,
206    #[suffix("HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH")]
207    Http2PushedResponseDoesNotMatch = -378,
208    HttpResponseCodeFailure = -379,
209    QuicUnknownCertRoot = -380,
210    QuicGoawayRequestCanBeRetried = -381,
211    TooManyAcceptChRestarts = -382,
212    InconsistentIpAddressSpace = -383,
213    CachedIpAddressSpaceBlockedByLocalNetworkAccessPolicy = -384,
214    CacheMiss = -400,
215    CacheReadFailure = -401,
216    CacheWriteFailure = -402,
217    CacheOperationUnsupported = -403,
218    CacheOpenFailure = -404,
219    CacheCreateFailure = -405,
220    CacheRace = -406,
221    CacheChecksumReadFailure = -407,
222    CacheChecksumMismatch = -408,
223    CacheLockTimeout = -409,
224    CacheAuthFailureAfterRead = -410,
225    CacheEntryNotSuitable = -411,
226    CacheDoomFailure = -412,
227    CacheOpenOrCreateFailure = -413,
228    InsecureResponse = -501,
229    NoPrivateKeyForCert = -502,
230    AddUserCertFailed = -503,
231    InvalidSignedExchange = -504,
232    InvalidWebBundle = -505,
233    TrustTokenOperationFailed = -506,
234    TrustTokenOperationSuccessWithoutSendingRequest = -507,
235    FtpFailed = -601,
236    FtpServiceUnavailable = -602,
237    FtpTransferAborted = -603,
238    FtpFileBusy = -604,
239    FtpSyntaxError = -605,
240    FtpCommandUnsupported = -606,
241    FtpBadCommandSequence = -607,
242    #[suffix("PKCS12_IMPORT_BAD_PASSWORD")]
243    Pkcs12ImportBadPassword = -701,
244    #[suffix("PKCS12_IMPORT_FAILED")]
245    Pkcs12ImportFailed = -702,
246    ImportCaCertNotCa = -703,
247    ImportCertAlreadyExists = -704,
248    ImportCaCertFailed = -705,
249    ImportServerCertFailed = -706,
250    #[suffix("PKCS12_IMPORT_INVALID_MAC")]
251    Pkcs12ImportInvalidMac = -707,
252    #[suffix("PKCS12_IMPORT_INVALID_FILE")]
253    Pkcs12ImportInvalidFile = -708,
254    #[suffix("PKCS12_IMPORT_UNSUPPORTED")]
255    Pkcs12ImportUnsupported = -709,
256    KeyGenerationFailed = -710,
257    PrivateKeyExportFailed = -712,
258    SelfSignedCertGenerationFailed = -713,
259    CertDatabaseChanged = -714,
260    CertVerifierChanged = -716,
261    DnsMalformedResponse = -800,
262    DnsServerRequiresTcp = -801,
263    DnsServerFailed = -802,
264    DnsTimedOut = -803,
265    DnsCacheMiss = -804,
266    DnsSearchEmpty = -805,
267    DnsSortError = -806,
268    DnsSecureResolverHostnameResolutionFailed = -808,
269    DnsNameHttpsOnly = -809,
270    DnsRequestCanceled = -810,
271    DnsNoMatchingSupportedAlpn = -811,
272}