PAC URL does not return 200
high
Clients use the PAC file only when the final answer is 200. Any other status (404, 500, even 203 or 204) means they have no script and run without one. Redirects are followed by browsers and by Windows, but the page they lead to must answer 200.
Why it matters
A missing or failing PAC file looks like “no proxy configured” to most clients: they go direct and keep retrying after a pause that differs per client. Only a final status of exactly 200 counts. Chromium requires 200, and in the lab Windows (WinHTTP) failed with error 12167 on every other status it was given, 404 and 500 but also 203 and 204.
Redirects are followed. Chromium, Firefox and, in the lab, Windows (WinHTTP) followed a 302
with a relative or an absolute target and loaded the file it pointed to. A redirect is still an
extra dependency: when it leads to a login page or to a file: URL, the download fails. If your
pasted output ends in a 301 or 302, run curl with -L so that the final answer is shown.
A login request (401 or 407) on the PAC URL is reported by PAC-D012. A server that answers too slowly fails as well: Windows still worked after 29 seconds but gave up on a server that took 40 seconds, and Chromium stops after 30 seconds.
How to fix
Make the PAC URL answer 200 directly, without a login and preferably without redirects, and well within the 30 seconds after which Chromium and Windows give up; monitor it like any other critical service.
Examples
Bad
HTTP/1.1 302 Found
Location: https://sso.corp.example/login?next=/proxy.pac
Open bad example in checkerGood
HTTP/1.1 200 OK
Content-Type: application/x-ns-proxy-autoconfig
Cache-Control: max-age=3600
Open good example in checkerEngine behaviour
| Engine | Behaviour | Source |
|---|---|---|
| chromium | Any status other than 200 counts as a failed download; redirects are followed (never to a file: URL); the download gives up after 30 seconds. Without a PAC the browser goes direct unless the ProxyPacMandatory policy is set. | code, verified 2026-10-13 · ref |
| firefox | A redirect is followed; any status outside 200-299 counts as a failed download, and the download is retried later. | code, verified 2026-10-13 · ref |
| winhttp | Only status 200 is accepted; 203, 204, 404 and 500 all failed (error 12167). A 302 redirect to the PAC, relative or absolute, was followed and the file loaded. A 401 answer (Basic or NTLM) failed (error 12015). A server that took 29 seconds to answer still worked; one that took 40 seconds failed after about 30 seconds (error 12167). | lab, verified 2026-10-11 |
Related rules
- PAC URL asks for a login PAC-D012
- Content-Type is not application/x-ns-proxy-autoconfig PAC-D002
- PAC served over plain HTTP PAC-D001