Changeset 780

Show
Ignore:
Timestamp:
07/26/08 13:17:37 (4 months ago)
Author:
kaz
Message:
  • Added messages
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/TwitterFon/Classes/Network/TimelineDownloader.m

    r779 r780  
    6666{ 
    6767    switch (statusCode) { 
    68         case 401: 
     68        case 401: // Not Authorized: either you need to provide authentication credentials, or the credentials provided aren't valid. 
    6969            [self alertError:@"Authentication Failed" withMessage:@"Wrong username/Email and password combination."]; 
    7070            return; 
    71             break; 
    7271             
    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. 
    7678            break; 
    7779                 
    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. 
    8384        default: 
    8485        { 
     
    8687            [self alertError:@"Server responded an error" withMessage:msg]; 
    8788            return; 
    88             break; 
    8989        } 
    9090    }