306 Switch Proxy
The 306 HTTP status code is a reserved and currently unused code in the HTTP/1.1 specification.
The HTTP status code 306 Switch Proxy is a reserved and currently unused code in the HTTP/1.1 specification. It was intended to redirect a client to use a different proxy server, and the new proxy location would be valid for a specified period.
However, this status code is not implemented or widely supported by web servers or clients, so it is not used in practice.
The 306 Switch Proxy status code is reserved for future use but is currently not implemented in practice. It was intended to be sent by a server in response to a client's request for a resource through a proxy, indicating that the proxy location has changed.
The Set-Proxy HTTP header would have been used to specify the new location of the alternate proxy and the duration for which the address would be valid.
However, as of now, this status code is not used in the HTTP protocol.
In the example, when the client tries to access a resource through a proxy, the server responds with a 306 Switch Proxy status code, indicating that the resource is temporarily available at a different location for 120 seconds.
However, it's important to note that the 306 status code is currently not used in practice and is reserved for future use.
Request
GET /document.pdf HTTP/1.1
Host: proxy.example.com
Response
HTTP/1.1 306 Switch Proxy
Set-Proxy: SET; proxyURI=””https://proxy-2.example.com:8080/” scope=”http://”, seconds=120
The 306 Switch Proxy status code is not used in current web practices and is reserved for potential future use.
It was intended to instruct the client to switch to an alternate proxy location for a specified period, but it has not been implemented or standardized across web servers and browsers.
As of now, users and developers do not need to worry about encountering this status code in their HTTP interactions.