NSURLConnection obtendo arquivo JSON

Meu aplicativo iOS está recebendo o código (ex. 101) e, por esse código, ele lê o arquivo JSON (ex. 101.json) no servidor e lê os dados. Tudo está funcionando bem, mas como fazer isso se não houver arquivo (para esse código) no servidor (agora não está exibindo dados se o arquivo não for encontrado) e se não houver conexão com a Internet apenas para obter dados do arquivo JSON dentro do aplicativo? Aqui está o meu código:

NSString *baseURLStr = @"http://myserverurl/";
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL
                                                      URLWithString:[baseURLStr stringByAppendingFormat:@"%d/%d.json", int1, int2]]];
NSData *data = [NSURLConnection sendSynchronousRequest:request
                                     returningResponse:nil error:nil];
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];  

Descobri como ler o arquivo dentro do aplicativo se não houver conexão com a internet.

if (data == nil){

    NSData *data = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"FAILED" ofType:@"json"]];
    NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
    self.members = json[@"data"];

}
else {

    NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
    self.members = json[@"data"];

}