I would like to detect when a page load request give to a UIWebView has returned a status code in the 5xx or 4xx range.
I\'ve setup the delegate for the web view a
What about implementing webViewDidFinishLoad: on your UIWebViewDelegate, and using the request property of the UIWebView to access the headers you're interested in? Something like this (untested):
- (void)webViewDidFinishLoad:(UIWebView *)webView {
NSString* theStatus = [[webView request] valueForHTTPHeaderField:@"Status"];
}