“This page isn’t working” response from Chrome, with 401 HTTP status code

I’m trying to access a web application that is protected by HTTP Basic Authentication.

When I visit the application URL in Chrome, I expect to see the HTTP Basic Auth credentials input box, to allow me to enter my username and password.

But instead of that, I see an immediate response from Chrome itself that says “This page isn’t working”, with HTTP ERROR 401.

What specific conditions would cause Chrome to show this response? How does Chrome know that this isn’t a standard 401 Access Denied error?

In the Network tab of Developer Tools, I see this:

(failed) net::ERR_HTTP_RESPONSE_CODE_FAILURE