Fixup handling of HTTP response in 401 case