I see that there is a list of accepted http status codes that I can modify, but I think it would be cleaner if I can get the http status code in the failure block ..
NSInteger operationStatusCode = [operation.error code];
NSInteger httpStatusCode = operation.response.statusCode;
If the requests were cancelled/unreachable/timeout, httpStatusCode will be always 0.
Alternatively you can identify the issue by understanding the operationStatusCode. It is a NSError Object.
operationStatusCode will be -1009. operationStatusCode will be -999.You can check all other NSError codes and their descriptions in Apple's documentation