Skip to content

Instantly share code, notes, and snippets.

@cvasilak
Created June 10, 2014 14:46
Show Gist options
  • Save cvasilak/466bf8388b11931a5fb5 to your computer and use it in GitHub Desktop.
Save cvasilak/466bf8388b11931a5fb5 to your computer and use it in GitHub Desktop.
NSHTTPURLResponse *httpResp = (NSHTTPURLResponse*) response;
if ( (httpResp.statusCode == 401 /* Unauthorized */ || httpResp.statusCode == 400 /* Bad Request */)
&& [self.requestSerializer isKindOfClass:[AGRequestSerializer class]]) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment