305 Use Proxy

Deprecated. Originally told the client to repeat the request through the proxy named in Location.

Status

HTTP/1.1 305 Use Proxy

Details

305 was meant to let an origin server direct a client to a specific proxy. It is deprecated because of the obvious security problem: any server able to answer a request could redirect a client's traffic through a host of its choosing, and clients had no way to judge whether that was safe.

Modern clients ignore it, and RFC 9110 states that a server must not generate it. Proxy selection today is a client-side configuration matter, handled by explicit settings, environment variables, or a PAC file.

Common causes

How to fix it

As the client

As the server

Examples

GET /internal/report HTTP/1.1
Host: legacy.example.com

HTTP/1.1 305 Use Proxy
Location: http://proxy.internal.example.com:8080

Notes for proxy users

Nothing in normal proxy operation should ever produce a 305. If you see one, an intermediary is trying to reroute your traffic, which is worth investigating before following it.

Specifications

RFC 9110 §15.4.6

See also