NSURLError(URL加载错误码)
enum : ns integer { nsurlerrorunknown=-1,NSURLErrorCancelled=-999,NSURLErrorBadURL=-1000,nsurlerrrortimedout=NSURLErrorCannotFindHost=-1003,nsurlerrorcannotconnecttohost=-1004,nsurlerrornetter nsurlerrordnsloookupfailed=-1000000 nsurlerrorhttptoomanyredirects=-1007,nsurlerrorresourceunavailable=-1008,nsurlerrornotconnectedtointernet=-1009, nsurlerrorredirecttononexistentlocation=-1010,nsurlerrorbadserverresponse=-1010, nsurlererrorbadserverresponse nsurlerrorusercancelledauthentication=-1012,nsurlerroruserauthentication required=-1013,1013 nsurlerrrrororrorruruserororurice nsurlerrorcannotdecoderawdata=-1015,nsurlerrorcannotdecodecontentdata=-1016,nsurrerrror nsurlerrorapptransportsecurityrequiressecureconnection=-1022,nsurlerrorfiledoesnotexist=-1100, nsurlerrorfileisdirection nsurlerrornopermissionstoreadfile=-1102,nsurlerrordatalengthexceedsmaximum=-1103, nsurlerrorsecureconnectionfailed=nsurlerrorservercertificatehasbaddate=-1201,nsurlerrorservercertificateuntrusted=-11201 nsurlerrorservercertificatehaated nsurlerrorservertificatenotyetvalid=-1204,nsurlerrorclientcertificaterejected=-12004 nsurlerrorclientcertificatereected=-1205,nsurlerrorclientcericatererere nsurlerrorcannotloadfromnetwork=-2000,nsurlerrorade NSURLErrorCannotOpenFile=-3001,nsurlerroor nsurlerrorcannotwritetofile=-3003,nsurlerrorcannotremovefile=-3004,nn nsurlerrordownloaddecodingfailedmidstream=-3006,nsurlerrordownloaddecodingfailedtocomplete=-3007, nsurlerrorinternation nsurlerrorcallisactive=-1019,NSURLErrorDataNotAllowed=-1020,nsurlerrorrequestbodystreamexhausted nsurlerrrorbackgroundsessionrequiressharedcontainer=-995,nsurlerrorbackgroundsessioninusebyanotherprocess=-996,nsurlerrrrrrrrrrrrrrrrorororor
-999 (请求已取消() ) )。
-1000 (由于请求的URL错误,无法启动请求) ) )。
-1001 (请求超时() ) ) ) )。
-1002 (不支持的URL方案) )。
- 1003 (无法解析URL主机名,即DNS有问题) )。
-1004 (连接主机失败) ) ) ) )
-1005 (连接时中断)
-1006 (同- -1003 ) )。
-1007 (重定向次数超过限制) )
-1008 (无法获取请求的资源() ) )。
-1009 (网络断开状态) )
-1010 (重定向到不存在的位置) () ) ) ) ) ) 0
-1011 (服务器返回数据有误) ) ) ) ) ) )。
-1012 (认证请求已被用户取消) ) ) ) ) ) ) )。
-1013 (访问资源需要认证) ) )
-1014 (服务器报告URL数据不为空但未返回任何数据) ) ) ) ) )。
-1015 (无法将响应数据解码为已知内容代码) ) ) ) ) ) ) )。
-1016 (请求数据中有未知内容的编码) ) )
-1017 (无法分析响应数据) ) ) ) ) ) )。
-1018 (漫游期间请求数据,但漫游开关已关闭) )。
-1019(Edge、GPRS等网络不支持同时进行电话和通信,在通话中请求错误代码() )。
-1020 (手机网络无法连接) ) ) ) )。
-1021 (请求的主体流已用尽) ) ) ) ) ) )。
-1100 (请求的文件路径中不存在文件)
-1101 (请求的文件只是目录,不是文件) )。
-1102 ((没有权限无法读取文件) ) ) ) ) ) )。
-1103 (资源数据大小超过最大限制() ) ) ) )。
//SSL errors
-1200 (安全连接失败) ) ) )
-1201 (服务器证书过期时间) ) ) ) ) ) ) )。
-1202 (不受信任的根服务器签名证书) ) ) )。
-1203 (服务器证书没有根服务器签名) ) ) ) )。
-1204 (服务器证书尚未启用) ) ) ) ) ) )。
-1205 (服务器证书被拒绝() ) )
- 1206 (要验证SSL连接,需要客户端证书() ) ) ) ) ) 0
-2000 (请求只能加载缓存中的数据,不能加载网络数据) ) ) ) ) ) ) )。
//download and file I/o错误
-3000 (下载操作无法创建文件() ) )。
-3001 (下载操作无法打开文件)
-3002 (下载操作无法关闭文件) ) ) ) ) )。
-3003 (下载操作无法写入文件) ) ) ) )。
-3004 (下载操作无法删除文件) ) )。
-3005 (下载操作无法移动文件) )。
-3006 (无法解码下载期间编码的文件() ) ) ) ) ) ) ) ) ) ) 0
-3007 (下载操作在下载完成后解码编码文件失败) ) ) )。