Benches Uncategorized

1

HTTP Status Code

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi,

I am loading a URL with NSUrlRequest into a UIWebView. If the URL is wrong, I would like to stop the execution of my application. How can I detect the HTTP status code 200?
Thanks for your help!

Regards
Christian

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Have a look at statusCode in NSHTTPURLResponse.

    Eric