When I make request through makeWebRequest(), which I expect to return 401 (NotAuthorized), I get the -1001 result instead. Why is this happening? Protocol is http (not https).
P.S. I don't know what happens on read device (not simulator) in this case, because I only tested on simulator.