ios - What are the meanings of the codes in the NSURLErrorDomain? -
i'm posting reference can never find list when need it!
is there canonical list of meanings of codes nsurlerrordomain
?
taken here, list of error codes follows:
nsurlerrorunknown = -1, nsurlerrorcancelled = -999, nsurlerrorbadurl = -1000, nsurlerrortimedout = -1001, nsurlerrorunsupportedurl = -1002, nsurlerrorcannotfindhost = -1003, nsurlerrorcannotconnecttohost = -1004, nsurlerrordatalengthexceedsmaximum = -1103, nsurlerrornetworkconnectionlost = -1005, nsurlerrordnslookupfailed = -1006, nsurlerrorhttptoomanyredirects = -1007, nsurlerrorresourceunavailable = -1008, nsurlerrornotconnectedtointernet = -1009, nsurlerrorredirecttononexistentlocation = -1010, nsurlerrorbadserverresponse = -1011, nsurlerrorusercancelledauthentication = -1012, nsurlerroruserauthenticationrequired = -1013, nsurlerrorzerobyteresource = -1014, nsurlerrorcannotdecoderawdata = -1015, nsurlerrorcannotdecodecontentdata = -1016, nsurlerrorcannotparseresponse = -1017, nsurlerrorinternationalroamingoff = -1018, nsurlerrorcallisactive = -1019, nsurlerrordatanotallowed = -1020, nsurlerrorrequestbodystreamexhausted = -1021, nsurlerrorfiledoesnotexist = -1100, nsurlerrorfileisdirectory = -1101, nsurlerrornopermissionstoreadfile = -1102, nsurlerrorsecureconnectionfailed = -1200, nsurlerrorservercertificatehasbaddate = -1201, nsurlerrorservercertificateuntrusted = -1202, nsurlerrorservercertificatehasunknownroot = -1203, nsurlerrorservercertificatenotyetvalid = -1204, nsurlerrorclientcertificaterejected = -1205, nsurlerrorclientcertificaterequired = -1206, nsurlerrorcannotloadfromnetwork = -2000, nsurlerrorcannotcreatefile = -3000, nsurlerrorcannotopenfile = -3001, nsurlerrorcannotclosefile = -3002, nsurlerrorcannotwritetofile = -3003, nsurlerrorcannotremovefile = -3004, nsurlerrorcannotmovefile = -3005, nsurlerrordownloaddecodingfailedmidstream = -3006, nsurlerrordownloaddecodingfailedtocomplete = -3007
Comments
Post a Comment