3xx Redirection

HTTP 305 Use Proxy

The requested resource must be accessed through the given proxy.

When is 305 used?

  • Legacy proxy routing (deprecated)

How to handle a 305 response

Follow the Location header. Most HTTP clients do this automatically, and curl -L follows redirects on the command line. Update links and sitemaps that point at permanently redirected URLs.

Check the status code a URL returns from the command line:

curl -s -o /dev/null -w "%{http_code}\n" https://example.com

How to return 305 from your server

Node.js (Express)

res.status(305).json({ message: 'Use Proxy' });

Python (Flask)

return {"message": "Use Proxy"}, 305

Go (net/http)

w.WriteHeader(305)

Frequently Asked Questions

What does HTTP 305 mean?

305 Use Proxy: The requested resource must be accessed through the given proxy.

Is 305 an error?

No. 305 is in the 3xx Redirection class. Redirection: the client must take additional action, usually requesting a different URL.