Is there any way to detect if the url sent to SafariViewController gives error 404 (page not found) and then submit to another default url or even dismiss the SafariViewController? I'm using this way right now, objetive-c please.
SFSafariViewController * sfSafariVC = [[SFSafariViewController alloc] initWithURL:url entersReaderIfAvailable:NO];
sfSafariVC.delegate = self;
[self presentViewController:sfSafariVC animated:YES completion:nil];