# PAC URL does not return 200

Source: https://findproxyforurl.net/rules/http-error-status/ · last updated 2026-10-14

Rule PAC-D010 (`http-error-status`), severity high, category: Delivery (HTTP headers).

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.

## Bad

```js
HTTP/1.1 302 Found
Location: https://sso.corp.example/login?next=/proxy.pac
```

## Good

```js
HTTP/1.1 200 OK
Content-Type: application/x-ns-proxy-autoconfig
Cache-Control: max-age=3600
```

## Engine behaviour

- 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. (source: code, verified 2026-10-13)
- firefox: A redirect is followed; any status outside 200-299 counts as a failed download, and the download is retried later. (source: code, verified 2026-10-13)
- 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). (source: lab, verified 2026-10-11)
