In iOS, the Xcode/Swift method to load an HTTP request is void, and returns no value.
Why not return the response code? For example, on a successful page request, return 200; on a not found, return 404.
I know that the status
variable can be pulled from the header in the WebViewDidFinishLoad Method (ref link below), but it seems that a return code directly from the loadRequest method would make sense.
EDIT: Updated clip from documentation