Molybden API
Loading...
Searching...
No Matches
net_error.hpp
1// Copyright (c) 2000-2023 TeamDev Ltd. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_NET_ERROR_HPP
6#define MOLYBDEN_NET_ERROR_HPP
7
8namespace molybden {
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
584 kCertCommonNameInvalid,
585
596 kCertDateInvalid,
597
608 kCertAuthorityInvalid,
609
618 kCertContainsErrors,
619
624 kCertNoRevocationMechanism,
625
636 kCertUnableToCheckRevocation,
637
643 kCertRevoked,
644
653 kCertInvalid,
654
659 kCertWeakSignatureAlgorithm,
660
664 kCertNonUniqueName,
665
670 kCertWeakKey,
671
676 kCertNameConstraintViolation,
677
681 kCertValidityTooLong,
682
687 kCertTransparencyRequired,
688
693 kCertSymantecLegacy,
694
698 kCertEnd,
699
703 kInvalidUrl,
704
708 kDisallowedUrlScheme,
709
713 kUnknownUrlScheme,
714
718 kInvalidRedirect,
719
723 kTooManyRedirects,
724
729 kUnsafeRedirect,
730
737 kUnsafePort,
738
742 kInvalidResponse,
743
747 kInvalidChunkedEncoding,
748
752 kMethodNotSupported,
753
758 kUnexpectedProxyAuth,
759
763 kEmptyResponse,
764
768 kResponseHeadersTooBig,
769
773 kPacScriptFailed,
774
779 kRequestRangeNotSatisfiable,
780
784 kMalformedIdentity,
785
789 kContentDecodingFailed,
790
795 kNetworkIoSuspended,
796
800 kSynReplyNotReceived,
801
805 kEncodingConversionFailed,
806
810 kUnrecognizedFtpDirectoryListingFormat,
811
815 kNoSupportedProxies,
816
820 kHttp2ProtocolError,
821
825 kInvalidAuthCredentials,
826
831 kUnsupportedAuthScheme,
832
836 kEncodingDetectionFailed,
837
841 kMissingAuthCredentials,
842
846 kUnexpectedSecurityLibraryStatus,
847
852 kMisconfiguredAuthEnvironment,
853
857 kUndocumentedSecurityLibraryStatus,
858
862 kResponseBodyTooBigToDrain,
863
867 kResponseHeadersMultipleContentLength,
868
873 kIncompleteHttp2Headers,
874
880 kPacNotInDhcp,
881
885 kResponseHeadersMultipleContentDisposition,
886
890 kResponseHeadersMultipleLocation,
891
899 kHttp2ServerRefusedStream,
900
904 kHttp2PingFailed,
905
910 kContentLengthMismatch,
911
916 kIncompleteChunkedEncoding,
917
921 kQuicProtocolError,
922
926 kResponseHeadersTruncated,
927
932 kQuicHandshakeFailed,
933
937 kHttp2InadequateTransportSecurity,
938
942 kHttp2FlowControlError,
943
947 kHttp2FrameSizeError,
948
952 kHttp2CompressionError,
953
957 kProxyAuthRequestedWithNoConnection,
958
962 kHttp11Required,
963
967 kProxyHttp11Required,
968
972 kPacScriptTerminated,
973
978 kInvalidHttpResponse,
979
983 kContentDecodingInitFailed,
984
990 kHttp2RstStreamNoErrorReceived,
991
995 kHttp2PushedStreamNotAvailable,
996
1001 kHttp2ClaimedPushedStreamResetByServer,
1002
1009 kTooManyRetries,
1010
1014 kHttp2StreamClosed,
1015
1019 kHttp2ClientRefusedStream,
1020
1025 kHttp2PushedResponseDoesNotMatch,
1026
1034 kHttpResponseCodeFailure,
1035
1041 kQuicCertRootNotKnown,
1042
1046 kCacheMiss,
1047
1051 kCacheReadFailure,
1052
1056 kCacheWriteFailure,
1057
1061 kCacheOperationNotSupported,
1062
1066 kCacheOpenFailure,
1067
1071 kCacheCreateFailure,
1072
1079 kCacheRace,
1080
1087 kCacheChecksumReadFailure,
1088
1094 kCacheChecksumMismatch,
1095
1099 kCacheLockTimeout,
1100
1105 kCacheAuthFailureAfterRead,
1106
1112 kCacheEntryNotSuitable,
1113
1117 kCacheDoomFailure,
1118
1122 kCacheOpenOrCreateFailure,
1123
1127 kInsecureResponse,
1128
1133 kNoPrivateKeyForCert,
1134
1138 kAddUserCertFailed,
1139
1143 kInvalidSignedExchange,
1144
1148 kInvalidWebBundle,
1149
1154 kTrustTokenOperationFailed,
1155
1161 kTrustTokenOperationCacheHit,
1162
1167 kFtpFailed,
1168
1174 kFtpServiceUnavailable,
1175
1180 kFtpTransferAborted,
1181
1187 kFtpFileBusy,
1188
1193 kFtpSyntaxError,
1194
1199 kFtpCommandNotSupported,
1200
1206 kFtpBadCommandSequence,
1207
1211 kPkcs12ImportBadPassword,
1212
1216 kPkcs12ImportFailed,
1217
1221 kImportCaCertNotCa,
1222
1228 kImportCertAlreadyExists,
1229
1233 kImportCaCertFailed,
1234
1238 kImportServerCertFailed,
1239
1243 kPkcs12ImportInvalidMac,
1244
1248 kPkcs12ImportInvalidFile,
1249
1253 kPkcs12ImportUnsupported,
1254
1258 kKeyGenerationFailed,
1259
1263 kPrivateKeyExportFailed,
1264
1268 kSelfSignedCertGenerationFailed,
1269
1273 kCertDatabaseChanged,
1274
1278 kDnsMalformedResponse,
1279
1283 kDnsServerRequiresTcp,
1284
1298 kDnsServerFailed,
1299
1303 kDnsTimedOut,
1304
1309 kDnsCacheMiss,
1310
1314 kDnsSearchEmpty,
1315
1319 kDnsSortError
1320};
1321
1322} // namespace molybden
1323
1324#endif // MOLYBDEN_NET_ERROR_HPP