In AFNetworking 3.0 some things was changed. Basicaly, there is no more operations, instead session data tasks
. How can I get status code from NSURLSessionDataTask
?
This is my block:
GET("users/check_email", parameters: parameters, progress: nil, success: { sessionDataTask, response in
// here I need status code of response
}) { sessionDataTask, error in
completionBlock(nil, NSError(sessionDataTask: sessionDataTask))
}