|
15 | 15 | const int kQNNetworkError = -1; |
16 | 16 |
|
17 | 17 | /** |
18 | | - https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/index.html#//apple_ref/doc/constant_group/URL_Loading_System_Error_Codes |
19 | | - |
20 | | - NSURLErrorUnknown = -1, |
21 | | - NSURLErrorCancelled = -999, |
22 | | - NSURLErrorBadURL = -1000, |
23 | | - NSURLErrorTimedOut = -1001, |
24 | | - NSURLErrorUnsupportedURL = -1002, |
25 | | - NSURLErrorCannotFindHost = -1003, |
26 | | - NSURLErrorCannotConnectToHost = -1004, |
27 | | - NSURLErrorDataLengthExceedsMaximum = -1103, |
28 | | - NSURLErrorNetworkConnectionLost = -1005, |
29 | | - NSURLErrorDNSLookupFailed = -1006, |
30 | | - NSURLErrorHTTPTooManyRedirects = -1007, |
31 | | - NSURLErrorResourceUnavailable = -1008, |
32 | | - NSURLErrorNotConnectedToInternet = -1009, |
33 | | - NSURLErrorRedirectToNonExistentLocation = -1010, |
34 | | - NSURLErrorBadServerResponse = -1011, |
35 | | - NSURLErrorUserCancelledAuthentication = -1012, |
36 | | - NSURLErrorUserAuthenticationRequired = -1013, |
37 | | - NSURLErrorZeroByteResource = -1014, |
38 | | - NSURLErrorCannotDecodeRawData = -1015, |
39 | | - NSURLErrorCannotDecodeContentData = -1016, |
40 | | - NSURLErrorCannotParseResponse = -1017, |
41 | | - NSURLErrorInternationalRoamingOff = -1018, |
42 | | - NSURLErrorCallIsActive = -1019, |
43 | | - NSURLErrorDataNotAllowed = -1020, |
44 | | - NSURLErrorRequestBodyStreamExhausted = -1021, |
45 | | - NSURLErrorFileDoesNotExist = -1100, |
46 | | - NSURLErrorFileIsDirectory = -1101, |
47 | | - NSURLErrorNoPermissionsToReadFile = -1102, |
48 | | - NSURLErrorSecureConnectionFailed = -1200, |
49 | | - NSURLErrorServerCertificateHasBadDate = -1201, |
50 | | - NSURLErrorServerCertificateUntrusted = -1202, |
51 | | - NSURLErrorServerCertificateHasUnknownRoot = -1203, |
52 | | - NSURLErrorServerCertificateNotYetValid = -1204, |
53 | | - NSURLErrorClientCertificateRejected = -1205, |
54 | | - NSURLErrorClientCertificateRequired = -1206, |
55 | | - NSURLErrorCannotLoadFromNetwork = -2000, |
56 | | - NSURLErrorCannotCreateFile = -3000, |
57 | | - NSURLErrorCannotOpenFile = -3001, |
58 | | - NSURLErrorCannotCloseFile = -3002, |
59 | | - NSURLErrorCannotWriteToFile = -3003, |
60 | | - NSURLErrorCannotRemoveFile = -3004, |
61 | | - NSURLErrorCannotMoveFile = -3005, |
62 | | - NSURLErrorDownloadDecodingFailedMidStream = -3006, |
63 | | - NSURLErrorDownloadDecodingFailedToComplete = -3007 |
| 18 | + https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/index.html#//apple_ref/doc/constant_group/URL_Loading_System_Error_Codes |
| 19 | +
|
| 20 | + NSURLErrorUnknown = -1, |
| 21 | + NSURLErrorCancelled = -999, |
| 22 | + NSURLErrorBadURL = -1000, |
| 23 | + NSURLErrorTimedOut = -1001, |
| 24 | + NSURLErrorUnsupportedURL = -1002, |
| 25 | + NSURLErrorCannotFindHost = -1003, |
| 26 | + NSURLErrorCannotConnectToHost = -1004, |
| 27 | + NSURLErrorDataLengthExceedsMaximum = -1103, |
| 28 | + NSURLErrorNetworkConnectionLost = -1005, |
| 29 | + NSURLErrorDNSLookupFailed = -1006, |
| 30 | + NSURLErrorHTTPTooManyRedirects = -1007, |
| 31 | + NSURLErrorResourceUnavailable = -1008, |
| 32 | + NSURLErrorNotConnectedToInternet = -1009, |
| 33 | + NSURLErrorRedirectToNonExistentLocation = -1010, |
| 34 | + NSURLErrorBadServerResponse = -1011, |
| 35 | + NSURLErrorUserCancelledAuthentication = -1012, |
| 36 | + NSURLErrorUserAuthenticationRequired = -1013, |
| 37 | + NSURLErrorZeroByteResource = -1014, |
| 38 | + NSURLErrorCannotDecodeRawData = -1015, |
| 39 | + NSURLErrorCannotDecodeContentData = -1016, |
| 40 | + NSURLErrorCannotParseResponse = -1017, |
| 41 | + NSURLErrorInternationalRoamingOff = -1018, |
| 42 | + NSURLErrorCallIsActive = -1019, |
| 43 | + NSURLErrorDataNotAllowed = -1020, |
| 44 | + NSURLErrorRequestBodyStreamExhausted = -1021, |
| 45 | + NSURLErrorFileDoesNotExist = -1100, |
| 46 | + NSURLErrorFileIsDirectory = -1101, |
| 47 | + NSURLErrorNoPermissionsToReadFile = -1102, |
| 48 | + NSURLErrorSecureConnectionFailed = -1200, |
| 49 | + NSURLErrorServerCertificateHasBadDate = -1201, |
| 50 | + NSURLErrorServerCertificateUntrusted = -1202, |
| 51 | + NSURLErrorServerCertificateHasUnknownRoot = -1203, |
| 52 | + NSURLErrorServerCertificateNotYetValid = -1204, |
| 53 | + NSURLErrorClientCertificateRejected = -1205, |
| 54 | + NSURLErrorClientCertificateRequired = -1206, |
| 55 | + NSURLErrorCannotLoadFromNetwork = -2000, |
| 56 | + NSURLErrorCannotCreateFile = -3000, |
| 57 | + NSURLErrorCannotOpenFile = -3001, |
| 58 | + NSURLErrorCannotCloseFile = -3002, |
| 59 | + NSURLErrorCannotWriteToFile = -3003, |
| 60 | + NSURLErrorCannotRemoveFile = -3004, |
| 61 | + NSURLErrorCannotMoveFile = -3005, |
| 62 | + NSURLErrorDownloadDecodingFailedMidStream = -3006, |
| 63 | + NSURLErrorDownloadDecodingFailedToComplete = -3007 |
64 | 64 | */ |
65 | 65 |
|
66 | 66 | static QNResponseInfo *cancelledInfo = nil; |
|
0 commit comments