I\'m using RestKit in an iOS app and I need to have special handling for certain HTTP error codes. How can the the response HTTP status code be checked inside of request:d
request:d
The statusCode property found on RKResponse works for me:
statusCode
RKResponse
- (void)objectLoader:(RKObjectLoader*)objectLoader didFailWithError:(NSError*)error { switch ([[objectLoader response] statusCode]) { case 409: ... }