Proxy error 464 means the proxy gateway refused the destination you asked for. The site you were trying to reach never saw the request. 464 is not a standard HTTP status, so no web server sends it by convention; some proxy gateways use it for their own policy refusals, such as a request aimed at a loopback or private address. Ours read Connection to the specified target is not permitted due to security policies, and the target was our own app on 127.0.0.1.

Who sent the 464

The first question about an unfamiliar status is which server produced it. A 464 that comes back through a proxy has two candidates, the proxy and the destination, and the test that separates them takes a minute: same proxy, same minute, a different target.

GET http://127.0.0.1:<apiPort>/api/v1/…   through the profile's proxy
  464  Connection to the specified target is not permitted
       due to security policies.
GET http://example.com/                   same proxy, same minute
  200

The proxy was healthy. It was refusing one destination. That is the shape of nearly every 464: a gateway carrying traffic for thousands of customers usually will not carry a request into its own network or back to a loopback address, and some refuse particular domains as well. Retrying does not help, and changing the browser's headers does not help either, because the gateway is judging the target and not how you asked for it. If the target is a public site, the seller's support is the only route to an answer, because only they know their list.

Other servers use 464 for meanings of their own, load balancers among them. That is the other half of the lesson. A non-standard number means whatever the sender says it means, so read the body and the response headers before reading anything into the number.

Paste one proxy line. Every profile gets its own IPIn Mosaic: A new IP for every profile. One proxy account, a separate IP for every profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

How it works: A new IP for every profile

Why our own code could not find it

Every Mosaic profile carries a companion extension. Its popup shows that profile's notes, logins and two-factor codes, and it gets them by calling Mosaic's local API from inside the profile's browser. The bug arrived as GET /profiles/<uuid> failed (464).

We searched the repository for 464 and found nothing, because nothing in it emits that status. The popup's error handling had already been redesigned once around a 464 nobody could explain. That made the popup better and fixed nothing, since the popup was doing everything right and being answered by somebody else's server.

The cause was one of our own defences. An extension page's fetch leaves through the profile's network settings like any page does, and those settings exist to keep web content away from the operator's machine. Chrome normally lets requests to localhost skip the proxy. We launch with --proxy-bypass-list=<-loopback>, which removes that exemption, so even 127.0.0.1 goes out through the proxy. That is deliberate: it is what stops a page from probing services on the operator's computer. A residential gateway will not proxy to loopback, so the companion's call reached the gateway and stopped there.

The fix: one name, in three places

Taking <-loopback> out would have fixed the popup and reopened the hole it closes. We gave the companion a name of its own instead: a random *.localhost host, new at every launch. RFC 6761 makes .localhost loopback by definition, and Chromium treats it as potentially trustworthy, which an arbitrary http:// host is not, so the extension can fetch it at all. A page cannot learn the name, because a page cannot read the extension's source.

Three settings decide whether a request leaves the browser, and the name has to be in all three:

  1. The proxy bypass list, when the profile has a proxy.
  2. The first rule of the PAC script, when it has none.
  3. --host-resolver-rules, ahead of the wildcard that makes every other name fail to resolve when DNS goes through the proxy.

The third one cost us a second round. With only the bypass list fixed, the popup failed again with TypeError: Failed to fetch and no log line, which looked like the first fix had not worked. The resolver's MAP * ~NOTFOUND had matched the companion's name before anything else could (why the first matching rule wins).

What we measured after both halves

From inside the extension's own origin:

profile with a residential proxy + DNS through the proxy   popup GET /profiles/<id>  200
profile with no proxy (the PAC path)                       popup GET /profiles/<id>  200

Then the same doors from an ordinary page on https://example.com in the same browser, to confirm the defence still held. With no proxy, loopback by address, the LAN and the companion's host all stayed silent while the web answered 200. With the proxy, a request to loopback by address got the gateway's refusal back in 270 ms and nothing more.

npm run check:companion-reach runs in our build and fails if the three places spell different names, or if a launch with no companion exempts anything. We proved it by putting each half of the fault back and watching the check fire.

If you are looking at a 464 now

Send one request through the same proxy to a public site you know works. If it answers, your proxy is fine and the gateway is refusing your target. Check what the target really is: a hostname that resolves to a private address can be refused just like the address itself. If the request was meant to stay on your machine, exempt that one host from the proxy and nothing wider. If it was a public site, ask the seller. Testing a proxy before a profile depends on it is its own routine (what to check before you use a proxy), and what the gateway in the middle can and cannot see of your traffic is in what a proxy provider can see.