Navigation
What does HTTP Status Code 305-Use Proxy mean?
HTTP Status Code 305 is one of the classes of 3xx(redirection) response code that indicates that the client’s requested resource is only available through a proxy, and that the server’s response includes the proxy’s address.
The proxy specified in the Location column MUST be used to access the requested resource. The URI of the proxy is given in the Location column. The receiver is expected to use the proxy to repeat this single request. Only origin servers are allowed to send 305 replies.
Similarly, It is a deprecated status response code that is used by the server to tell the client so that the client gets connected to a proxy and then makes the identical request there.
305 behaves in a similar way as a redirect. It effectively notifies a client that this resource can only be fetched if the appropriate proxy is utilized. A client may connect to this proxy and try the exact same request again through the proxy to obtain the genuine answer.
Example
The following answer would instruct a client to retry the identical request through proxy at
proxy.example.org. |
HTTP/1.1 305 Use ProxyLocation: https://proxy.example.org:8080 |
Location Header Field
In some responses, the Location header field is used to refer to a particular resource in connection to the response. The type of relationship is defined by the combination method of the request and status code semantics.
Location = URI-reference
It only provides a meaning when used with a 3xx (redirection) or 201 (created) status response.
Syntax
Location:<url> |
Example
Location:/index.html |
Status
305 Use Proxy |
References
RFC7231, Section 6.4.5 | 305 Use Proxy. |
RFC2617, Section 10.3.6 | The deprecated specification. |
Related Articles
Status Code 101-Switching Protocols |
HTTP Status Code 302 Found |
HTTP Status Code 204 – No Content |
HTTP Status Code 207 Multi-Status |
FAQ
What does HTTP Status Code 305 mean?
305-Use Proxy status code is one of the classes of 3xx(redirection) response code that indicates that the client’s requested resource is only available through a proxy, and that the server’s response includes the proxy’s address.
How should we use HTTP 305?
The proxy specified in the Location column MUST be used to access the requested resource. The URI of the proxy is given in the Location column. The receiver is expected to use the proxy to repeat this single request. Only origin servers are allowed to send 305 replies.
Conclusion
I hope this article was able to help you with your doubts and queries related to the HTTP status code 305(Use Proxy). Still, if there are any queries related to this topic, feel free to ask in the comment section, we would be happy to assist you. Thank you.
Saurabh Chalise