AFNetWorking 返回服务器错误的状态码

       NSHTTPURLResponse *response = (NSHTTPURLResponse*)task.response;

        //通讯协议状态码

        NSInteger statusCode = response.statusCode;

        NSLog(@"%@",[NSString stringWithFormat:@"%ld",statusCode]);

 

posted @ 2016-12-27 16:14  YouNeedCourage  阅读(583)  评论(0编辑  收藏  举报