MōBrowser API
Loading...
Searching...
No Matches
net_error.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOBROWSER_NET_ERROR_HPP
6#define MOBROWSER_NET_ERROR_HPP
7
8namespace mobrowser {
9
13enum class NetError {
14 kUnspecified,
15
19 kOk,
20
27 kIoPending,
28
32 kFailed,
33
37 kAborted,
38
42 kInvalidArgument,
43
47 kInvalidHandle,
48
52 kFileNotFound,
53
57 kTimedOut,
58
62 kFileTooBig,
63
68 kUnexpected,
69
73 kAccessDenied,
74
78 kNotImplemented,
79
83 kInsufficientResources,
84
88 kOutOfMemory,
89
94 kUploadFileChanged,
95
99 kSocketNotConnected,
100
104 kFileExists,
105
109 kFilePathTooLong,
110
114 kFileNoSpace,
115
119 kFileVirusInfected,
120
124 kBlockedByClient,
125
129 kNetworkChanged,
130
135 kBlockedByAdministrator,
136
140 kSocketIsConnected,
141
146 kUploadStreamRewindNotSupported,
147
152 kContextShutDown,
153
160 kBlockedByResponse,
161
165 kConnectionClosed,
166
170 kConnectionReset,
171
175 kConnectionRefused,
176
181 kConnectionAborted,
182
186 kConnectionFailed,
187
191 kNameNotResolved,
192
196 kInternetDisconnected,
197
201 kSslProtocolError,
202
207 kAddressInvalid,
208
213 kAddressUnreachable,
214
218 kSslClientAuthCertNeeded,
219
223 kTunnelConnectionFailed,
224
228 kNoSslVersionsEnabled,
229
234 kSslVersionOrCipherMismatch,
235
239 kSslRenegotiationRequested,
240
245 kProxyAuthUnsupported,
246
250 kBadSslClientAuthCert,
251
255 kConnectionTimedOut,
256
261 kHostResolverQueueTooLarge,
262
267 kSocksConnectionFailed,
268
273 kSocksConnectionHostUnreachable,
274
278 kAlpnNegotiationFailed,
279
283 kSslNoRenegotiation,
284
289 kWinsockUnexpectedWrittenBytes,
290
296 kSslDecompressionFailureAlert,
297
302 kSslBadRecordMacAlert,
303
307 kProxyAuthRequested,
308
315 kProxyConnectionFailed,
316
321 kMandatoryProxyConfigurationFailed,
322
327 kPreconnectMaxSocketLimit,
328
332 kSslClientAuthPrivateKeyAccessDenied,
333
337 kSslClientAuthCertNoPrivateKey,
338
342 kProxyCertificateInvalid,
343
347 kNameResolutionFailed,
348
354 kNetworkAccessDenied,
355
359 kTemporarilyThrottled,
360
366 kHttpsProxyTunnelResponseRedirect,
367
377 kSslClientAuthSignatureFailed,
378
383 kMsgTooBig,
384
389 kWsProtocolError,
390
394 kAddressInUse,
395
399 kSslHandshakeNotCompleted,
400
404 kSslBadPeerPublicKey,
405
412 kSslPinnedKeyNotInCertChain,
413
417 kClientAuthCertTypeUnsupported,
418
424 kSslDecryptErrorAlert,
425
430 kWsThrottleQueueTooLarge,
431
435 kSslServerCertChanged,
436
440 kSslUnrecognizedNameAlert,
441
445 kSocketSetReceiveBufferSizeError,
446
450 kSocketSetSendBufferSizeError,
451
456 kSocketReceiveBufferSizeUnchangeable,
457
462 kSocketSendBufferSizeUnchangeable,
463
468 kSslClientAuthCertBadFormat,
469
476 kIcannNameCollision,
477
483 kSslServerCertBadFormat,
484
488 kCtSthParsingFailed,
489
494 kCtSthIncomplete,
495
502 kUnableToReuseConnectionForProxyAuth,
503
507 kCtConsistencyProofParsingFailed,
508
515 kSslObsoleteCipher,
516
521 kWsUpgrade,
522
527 kReadIfReadyNotImplemented,
528
532 kNoBufferSpace,
533
538 kSslClientAuthNoCommonAlgorithms,
539
545 kEarlyDataRejected,
546
556 kWrongVersionOnEarlyData,
557
565 kTls13DowngradeDetected,
566
571 kSslKeyUsageIncompatible,
572
585 kCertCommonNameInvalid,
586
596 kCertDateInvalid,
597
609 kCertAuthorityInvalid,
610
620 kCertContainsErrors,
621
626 kCertNoRevocationMechanism,
627
637 kCertUnableToCheckRevocation,
638
644 kCertRevoked,
645
652 kCertInvalid,
653
658 kCertWeakSignatureAlgorithm,
659
663 kCertNonUniqueName,
664
669 kCertWeakKey,
670
675 kCertNameConstraintViolation,
676
680 kCertValidityTooLong,
681
686 kCertTransparencyRequired,
687
692 kCertSymantecLegacy,
693
697 kCertEnd,
698
702 kInvalidUrl,
703
707 kDisallowedUrlScheme,
708
712 kUnknownUrlScheme,
713
717 kInvalidRedirect,
718
722 kTooManyRedirects,
723
728 kUnsafeRedirect,
729
736 kUnsafePort,
737
741 kInvalidResponse,
742
746 kInvalidChunkedEncoding,
747
751 kMethodNotSupported,
752
757 kUnexpectedProxyAuth,
758
762 kEmptyResponse,
763
767 kResponseHeadersTooBig,
768
772 kPacScriptFailed,
773
778 kRequestRangeNotSatisfiable,
779
783 kMalformedIdentity,
784
788 kContentDecodingFailed,
789
794 kNetworkIoSuspended,
795
799 kSynReplyNotReceived,
800
804 kEncodingConversionFailed,
805
809 kUnrecognizedFtpDirectoryListingFormat,
810
814 kNoSupportedProxies,
815
819 kHttp2ProtocolError,
820
824 kInvalidAuthCredentials,
825
830 kUnsupportedAuthScheme,
831
835 kEncodingDetectionFailed,
836
840 kMissingAuthCredentials,
841
845 kUnexpectedSecurityLibraryStatus,
846
851 kMisconfiguredAuthEnvironment,
852
856 kUndocumentedSecurityLibraryStatus,
857
861 kResponseBodyTooBigToDrain,
862
866 kResponseHeadersMultipleContentLength,
867
872 kIncompleteHttp2Headers,
873
879 kPacNotInDhcp,
880
884 kResponseHeadersMultipleContentDisposition,
885
889 kResponseHeadersMultipleLocation,
890
898 kHttp2ServerRefusedStream,
899
903 kHttp2PingFailed,
904
909 kContentLengthMismatch,
910
915 kIncompleteChunkedEncoding,
916
920 kQuicProtocolError,
921
925 kResponseHeadersTruncated,
926
931 kQuicHandshakeFailed,
932
936 kHttp2InadequateTransportSecurity,
937
941 kHttp2FlowControlError,
942
946 kHttp2FrameSizeError,
947
951 kHttp2CompressionError,
952
956 kProxyAuthRequestedWithNoConnection,
957
961 kHttp11Required,
962
966 kProxyHttp11Required,
967
971 kPacScriptTerminated,
972
977 kInvalidHttpResponse,
978
982 kContentDecodingInitFailed,
983
989 kHttp2RstStreamNoErrorReceived,
990
994 kHttp2PushedStreamNotAvailable,
995
1000 kHttp2ClaimedPushedStreamResetByServer,
1001
1008 kTooManyRetries,
1009
1013 kHttp2StreamClosed,
1014
1018 kHttp2ClientRefusedStream,
1019
1024 kHttp2PushedResponseDoesNotMatch,
1025
1033 kHttpResponseCodeFailure,
1034
1040 kQuicCertRootNotKnown,
1041
1045 kCacheMiss,
1046
1050 kCacheReadFailure,
1051
1055 kCacheWriteFailure,
1056
1060 kCacheOperationNotSupported,
1061
1065 kCacheOpenFailure,
1066
1070 kCacheCreateFailure,
1071
1078 kCacheRace,
1079
1086 kCacheChecksumReadFailure,
1087
1093 kCacheChecksumMismatch,
1094
1098 kCacheLockTimeout,
1099
1104 kCacheAuthFailureAfterRead,
1105
1111 kCacheEntryNotSuitable,
1112
1116 kCacheDoomFailure,
1117
1121 kCacheOpenOrCreateFailure,
1122
1126 kInsecureResponse,
1127
1132 kNoPrivateKeyForCert,
1133
1137 kAddUserCertFailed,
1138
1142 kInvalidSignedExchange,
1143
1147 kInvalidWebBundle,
1148
1153 kTrustTokenOperationFailed,
1154
1160 kTrustTokenOperationCacheHit,
1161
1166 kFtpFailed,
1167
1173 kFtpServiceUnavailable,
1174
1179 kFtpTransferAborted,
1180
1186 kFtpFileBusy,
1187
1192 kFtpSyntaxError,
1193
1198 kFtpCommandNotSupported,
1199
1205 kFtpBadCommandSequence,
1206
1210 kPkcs12ImportBadPassword,
1211
1215 kPkcs12ImportFailed,
1216
1220 kImportCaCertNotCa,
1221
1227 kImportCertAlreadyExists,
1228
1232 kImportCaCertFailed,
1233
1237 kImportServerCertFailed,
1238
1242 kPkcs12ImportInvalidMac,
1243
1247 kPkcs12ImportInvalidFile,
1248
1252 kPkcs12ImportUnsupported,
1253
1257 kKeyGenerationFailed,
1258
1262 kPrivateKeyExportFailed,
1263
1267 kSelfSignedCertGenerationFailed,
1268
1272 kCertDatabaseChanged,
1273
1277 kDnsMalformedResponse,
1278
1282 kDnsServerRequiresTcp,
1283
1296 kDnsServerFailed,
1297
1301 kDnsTimedOut,
1302
1307 kDnsCacheMiss,
1308
1312 kDnsSearchEmpty,
1313
1317 kDnsSortError
1318};
1319
1320} // namespace mobrowser
1321
1322#endif // MOBROWSER_NET_ERROR_HPP