When I switched from ApacheHttpTransport to NetHttpTransport IOException is thrown instead of HttpResponseException for 401 http status.
I get IOException with following message: Received “authentication challenge is null”
This is wrong. I should get HttpResponseException with 401 status. Does anybody faced same problem?
I fixed the problem. On server side I haven’t added header “WWW-Authenticate”. This response header is required for 401 responses.