UnityWebRequest returns odd responseCode

I’m using UnityWebRequest to talk to a REST API, and need to handle connectivity issues (like FlightMode), differently from other situations (like 404, 500, or whatever else can be considered “real errors”)

On my MacBook, running in the editor, the responseCode when I turn off WiFi is 0. On an iPhone, setting the device in FlightMode returns -1009…

I can use each of these codes to identify connection issues, but since neither of them are documented (or part of the HTTP standard for that matter), and since they are different between Editor and iOS play mode, they’re kind og giving me the heebee jeebees.

Does anyone know if this is just random garbage being returned, or it’s part of some undocumented error-code scheme?

Hm… Took a crap shot at Googling “-1009” as an error code and it turns out it matches the iOS error for no internet access

NSURLErrorNotConnectedToInternet

Any Unity peeps in here who can confirm that the UnityWebRequest returns native error codes on iOS?

Any information on what happens on other platforms?