I am unable to handle the status code from success block. Please give me suggestion how to handle the 204 No Content message
Asked
Active
Viewed 176 times
0

Vicky iOS
- 35
- 11
-
2`task.response.statusCode`? – Larme May 25 '17 at 11:35
-
How can I get status code from success block ? – Vicky iOS May 25 '17 at 11:48
-
I want to get the status code: 204 from success block – Vicky iOS May 25 '17 at 12:24
-
i got the answer NSHTTPURLResponse* r = (NSHTTPURLResponse*)task.response; NSLog(@"response %ld",(long)[r statusCode]); – Vicky iOS May 25 '17 at 12:30
-
So wasn't that my answer from the beginning? – Larme May 25 '17 at 12:31
-
yes, larme thank you for reply – Vicky iOS May 25 '17 at 12:49