Skip to content

305 Use Proxy (HTTP Status Code 305)

Updated: at 09:12 AM

HTTP status code 305 indicates that the requested resource must be accessed through a specified proxy server. When the server returns a 305 status code, it provides the URI of the proxy server in the Location response header, and the client needs to resend the request through this proxy server to access the resource.

Common Use Cases for 305 Status Code

Important Considerations

The 305 status code can only be generated by the original server and should not be cached, as this could lead to security issues. Additionally, RFC 2068 does not explicitly state that a 305 response is intended to redirect a single request, and it can only be established by the original server. Ignoring these restrictions may lead to serious security consequences.

In practice, due to the configuration of HTTP proxies and security concerns, the use of the 305 status code is not common. Most modern browsers and clients may not encounter this status code or may not handle it correctly. Therefore, caution is advised when using the 305 status code.