kCFHostErrorHostNotFound = 1,

kCFHostErrorUnknown = 2, // Query the kCFGetAddrInfoFailureKey to get the value returned from getaddrinfo; lookup in netdb.h

// SOCKS errors; in all cases you may query kCFSOCKSStatusCodeKey to recover the status code returned by the server

kCFSOCKSErrorUnknownClientVersion = 100,

kCFSOCKSErrorUnsupportedServerVersion = 101, // Query the kCFSOCKSVersionKey to find the version requested by the server

// SOCKS4-specific errors

kCFSOCKS4ErrorRequestFailed = 110,  // request rejected or failed by the server

kCFSOCKS4ErrorIdentdFailed = 111,  // request rejected because SOCKS server cannot connect to identd on the client

kCFSOCKS4ErrorIdConflict = 112,  // request rejected because the client program and identd report different user-ids

kCFSOCKS4ErrorUnknownStatusCode = 113,

// SOCKS5-specific errors

kCFSOCKS5ErrorBadState = 120,

kCFSOCKS5ErrorBadResponseAddr = 121,

kCFSOCKS5ErrorBadCredentials = 122,

kCFSOCKS5ErrorUnsupportedNegotiationMethod = 123, // query kCFSOCKSNegotiationMethodKey to find the method requested

kCFSOCKS5ErrorNoAcceptableMethod = 124,

// FTP errors; query the kCFFTPStatusCodeKey to get the status code returned by the server

kCFFTPErrorUnexpectedStatusCode = 200,

// HTTP errors

kCFErrorHTTPAuthenticationTypeUnsupported = 300,

kCFErrorHTTPBadCredentials = 301,

kCFErrorHTTPConnectionLost = 302,

kCFErrorHTTPParseFailure = 303,

kCFErrorHTTPRedirectionLoopDetected = 304,

kCFErrorHTTPBadURL = 305,

kCFErrorHTTPProxyConnectionFailure = 306,

kCFErrorHTTPBadProxyCredentials = 307,

kCFErrorPACFileError = 308,

kCFErrorPACFileAuth = 309,

kCFErrorHTTPSProxyConnectionFailure = 310,

kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod = 311,

// Error codes for CFURLConnection and CFURLProtocol

kCFURLErrorBackgroundSessionInUseByAnotherProcess = -996,

kCFURLErrorBackgroundSessionWasDisconnected = -997,

kCFURLErrorUnknown = -998,

kCFURLErrorCancelled = -999,

kCFURLErrorBadURL = -1000,

kCFURLErrorTimedOut = -1001,

kCFURLErrorUnsupportedURL = -1002,

kCFURLErrorCannotFindHost = -1003,

kCFURLErrorCannotConnectToHost = -1004,

kCFURLErrorNetworkConnectionLost = -1005,

kCFURLErrorDNSLookupFailed = -1006,

kCFURLErrorHTTPTooManyRedirects = -1007,

kCFURLErrorResourceUnavailable = -1008,

kCFURLErrorNotConnectedToInternet = -1009,

kCFURLErrorRedirectToNonExistentLocation = -1010,

kCFURLErrorBadServerResponse = -1011,

kCFURLErrorUserCancelledAuthentication = -1012,

kCFURLErrorUserAuthenticationRequired = -1013,

kCFURLErrorZeroByteResource = -1014,

kCFURLErrorCannotDecodeRawData = -1015,

kCFURLErrorCannotDecodeContentData = -1016,

kCFURLErrorCannotParseResponse = -1017,

kCFURLErrorInternationalRoamingOff = -1018,

kCFURLErrorCallIsActive = -1019,

kCFURLErrorDataNotAllowed = -1020,

kCFURLErrorRequestBodyStreamExhausted = -1021,

kCFURLErrorAppTransportSecurityRequiresSecureConnection = -1022,

kCFURLErrorFileDoesNotExist = -1100,

kCFURLErrorFileIsDirectory = -1101,

kCFURLErrorNoPermissionsToReadFile = -1102,

kCFURLErrorDataLengthExceedsMaximum = -1103,

// SSL errors

kCFURLErrorSecureConnectionFailed = -1200,

kCFURLErrorServerCertificateHasBadDate = -1201,

kCFURLErrorServerCertificateUntrusted = -1202,

kCFURLErrorServerCertificateHasUnknownRoot = -1203,

kCFURLErrorServerCertificateNotYetValid = -1204,

kCFURLErrorClientCertificateRejected = -1205,

kCFURLErrorClientCertificateRequired = -1206,

kCFURLErrorCannotLoadFromNetwork = -2000,

// Download and file I/O errors

kCFURLErrorCannotCreateFile = -3000,

kCFURLErrorCannotOpenFile = -3001,

kCFURLErrorCannotCloseFile = -3002,

kCFURLErrorCannotWriteToFile = -3003,

kCFURLErrorCannotRemoveFile = -3004,

kCFURLErrorCannotMoveFile = -3005,

kCFURLErrorDownloadDecodingFailedMidStream = -3006,

kCFURLErrorDownloadDecodingFailedToComplete = -3007,

// Cookie errors

kCFHTTPCookieCannotParseCookieFile = -4000,

// Errors originating from CFNetServices

kCFNetServiceErrorUnknown = -72000L,

kCFNetServiceErrorCollision = -72001L,

kCFNetServiceErrorNotFound = -72002L,

kCFNetServiceErrorInProgress = -72003L,

kCFNetServiceErrorBadArgument = -72004L,

kCFNetServiceErrorCancel = -72005L,

kCFNetServiceErrorInvalid = -72006L,

kCFNetServiceErrorTimeout = -72007L,

kCFNetServiceErrorDNSServiceFailure = -73000L //

ios底层网络请求错误码的更多相关文章

  1. ios htttp网络请求cookie的读取与写入(NSHTTPCookieStorage)

    当你访问一个网站时,NSURLRequest都会帮你主动记录下来你访问的站点设置的Cookie,如果 Cookie 存在的话,会把这些信息放在 NSHTTPCookieStorage 容器中共享,当你 ...

  2. Android项目实战(五十六):获取WebView加载的url的请求错误码

    例如需求,我有一个WebView 加载一个url, 该url对应的网页本身自带下拉刷新 ,但是网页本身会有出现400 500 等异常请求错误码 这时候网页加载失败,页面本身的下拉是无法使用的,要求重新 ...

  3. iOS之网络请求及各类错误代码含义总结(包含AFN错误码大全)

    转自http://blog.csdn.net/wangyanchang21/article/details/50932191 在很多时候都会遇到错误, 还会带有一些 Error Code , 比如在各 ...

  4. iOS - Alamofire 网络请求

    前言 Alamofire 是 Swift 语言的 HTTP 网络开发工具包,相当于 Swift 实现 AFNetworking 版本.当然,AFNetworking 非常稳定,在 Mac OSX 与 ...

  5. iOS - ASIHTTPRequest 网络请求

    前言 使用 iOS SDK 中的 HTTP 网络请求 API,相当的复杂,调用很繁琐,ASIHTTPRequest 就是一个对 CFNetwork API 进行了封装,并且使用起来非常简单的一套 AP ...

  6. iOS - NSURLSession 网络请求

    前言 NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0) @interface NSURLSession : NSObject @available(iOS ...

  7. iOS开发网络请求——大文件的多线程断点下载

    iOS开发中网络请求技术已经是移动app必备技术,而网络中文件传输就是其中重点了.网络文件传输对移动客户端而言主要分为文件的上传和下载.作为开发者从技术角度会将文件分为小文件和大文件.小文件因为文件大 ...

  8. iOS - AFNetworking 网络请求

    前言 在 iOS 开发中,一般情况下,简单的向某个 Web 站点简单的页面提交请求并获取服务器的响应,用 Xcode 自带的 NSURLConnection 是能胜任的.但是,在绝大部分下我们所需要访 ...

  9. iOS - NSURLConnection 网络请求

    前言 @interface NSURLConnection : NSObject class NSURLConnection : NSObject DEPRECATED: The NSURLConne ...

随机推荐

  1. LEETCODE —— Best Time to Buy and Sell Stock II [贪心算法]

    Best Time to Buy and Sell Stock II Say you have an array for which the ith element is the price of a ...

  2. vb6获取字符串长度

    用过VB5.0或者更早版本的读者应该知道VB有一个测试字符串长度的函数: Len.但当你升级到VB6时,会发现这里的Len并没有以前那么好用了——它变成了测试字符个数而不是字符串长度.就是说,当你用以 ...

  3. sp_change_users_login解决孤立用户问题

    孤立帐户,指的是某个数据库的帐户只有用户名而没有登录名,这样的用户在用户库的sysusers系统表中存在,而在master数据库的syslogins中却没有对应的记录. 孤立帐户的产生一般是一下两种: ...

  4. jquery 如何遍历json

    var obj = {"status":1,"bkmsg":"\u6210\u529f","bkdata":[" ...

  5. 微信公众号开发中遇到的几个bug

    一.测试自定义菜单接口时中文菜单名显示为null 设置的中文菜单名,中文未经过编码和解码过程,设置的中文菜单名在最后的微信服务器返回的json格式数据中显示为null. 解决办法:将中文先用uneco ...

  6. Android AChartEngine 去除折线图黑边

    通常使用AChartEngine画出的折线图,如果背景不是黑色,则会在折线图的坐标轴旁边出现黑边,如图所示: 试了好多设置,最后终于发现,去除黑边的设置是: mRenderer.setMarginsC ...

  7. change-resource-tags.sh

    #!/bin/bash ids=$(aws ec2 describe-instances --filter "Name=tag:Project,Values=ERPSystem" ...

  8. (C#) Interview Questions.

    (Note: Most are collected from Internet. 绝大部分内容来自互联网) 1. What's the difference between Hashtable and ...

  9. NeHe OpenGL教程 第四十八课:轨迹球

    转自[翻译]NeHe OpenGL 教程 前言 声明,此 NeHe OpenGL教程系列文章由51博客yarin翻译(2010-08-19),本博客为转载并稍加整理与修改.对NeHe的OpenGL管线 ...

  10. RPM方式安装MySQL5.6和windows下安装mysql解压版

    下载地址: http://cdn.MySQL.com/archives/mysql-5.6/MySQL-server-5.6.13-1.el6.x86_64.rpmhttp://cdn.mysql.c ...