diff options
-rw-r--r-- | Juick/APIClient.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Juick/APIClient.m b/Juick/APIClient.m index ac827e0..f2eeb29 100644 --- a/Juick/APIClient.m +++ b/Juick/APIClient.m @@ -73,9 +73,7 @@ NSLog(@"REST Error: %@", error); [[NSOperationQueue mainQueue] addOperationWithBlock:^{ NSInteger statusCode = ((NSHTTPURLResponse *)task.response).statusCode; - if (statusCode == 401) { - callback(nil, [NSError errorWithDomain:@"JuickErrorDomain" code:401 userInfo:nil]); - } + callback(nil, [NSError errorWithDomain:@"JuickErrorDomain" code:statusCode userInfo:nil]); }]; }]; }]; |