305

Use Proxy

Overview

305 Use Proxy was defined to mean the requested resource must be accessed through the proxy given in the Location header. However, it is deprecated for security reasons, and modern browsers and clients do not obey it.

Because a malicious server could force a client onto an arbitrary proxy and intercept traffic, it survives only as a historical code that is not used in practice.

When it happens

Request / Response example

Request
GET /resource HTTP/1.1
Host: example.com
Response
HTTP/1.1 305 Use Proxy
Location: http://proxy.example.com:8080

(deprecated: modern clients ignore this)

In code

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

Notes

Related status codes

Related headers

Specification