Changeset 780
- Timestamp:
- 07/26/08 13:17:37 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/TwitterFon/Classes/Network/TimelineDownloader.m
r779 r780 66 66 { 67 67 switch (statusCode) { 68 case 401: 68 case 401: // Not Authorized: either you need to provide authentication credentials, or the credentials provided aren't valid. 69 69 [self alertError:@"Authentication Failed" withMessage:@"Wrong username/Email and password combination."]; 70 70 return; 71 break;72 71 73 case 400: 74 case 200: 75 case 304: 72 case 304: // Not Modified: there was no new data to return. 73 return; 74 75 case 400: // Bad Request: your request is invalid, and we'll return an error message that tells you why. This is the status code returned if you've exceeded the rate limit 76 case 200: // OK: everything went awesome. 77 case 403: // Forbidden: we understand your request, but are refusing to fulfill it. An accompanying error message should explain why. 76 78 break; 77 79 78 case 403: 79 case 404: 80 case 500: 81 case 502: 82 case 503: 80 case 404: // Not Found: either you're requesting an invalid URI or the resource in question doesn't exist (ex: no such user). 81 case 500: // Internal Server Error: we did something wrong. Please post to the group about it and the Twitter team will investigate. 82 case 502: // Bad Gateway: returned if Twitter is down or being upgraded. 83 case 503: // Service Unavailable: the Twitter servers are up, but are overloaded with requests. Try again later. 83 84 default: 84 85 { … … 86 87 [self alertError:@"Server responded an error" withMessage:msg]; 87 88 return; 88 break;89 89 } 90 90 }
