My 2 cents: I came across a script when we were puzzled by HTTP 401 when requesting an image when deploying a web application. We use WiX as our packaging and installation solution. In this particular case, the image was not packaged by the installer, and therefore the path did not exist on the deployed instance.
One may wonder why this meant 401 , when 404 was expected (not found) - I understand that since our path was not directly under the root but something like root / content / images / image.png, and I made an anonymous request, I received 401 (unauthorized) since I did not have access to browse the directory. I confirmed this by adding an authorization header to my request, and then, as expected, I got 404 .
source share