305

Use Proxy

3xx Redirection

Back to list

Server perspective

Do not emit 305 in modern systems; keep it as historical reference material only.

When to use

  • Avoid 305 for real application behavior because it is deprecated and unsafe as a proxy-configuration signal
  • Use explicit proxy setup or ordinary redirect codes instead of trying to steer clients through a proxy this way

How to respond

  • If you maintain a legacy component that still knows about 305, plan to remove or replace that behavior
  • Do not introduce new 305 responses in APIs, gateways, or web applications

Headers to consider

  • Location

Response body

  • No modern product flow should depend on a 305 response body; the historical proxy target was carried in Location

Server-side pitfalls

  • Do not use 305 as a shortcut for network routing or access control
  • Do not trust clients to safely follow proxy instructions delivered in-band

Examples

Legacy platform cleanup

Request:Old gateway considers replying with 305
Response:Replace the design with explicit proxy configuration or a supported redirect pattern

The right fix is to remove the deprecated behavior, not document it as an active contract.

References

Related 3xx Redirection Codes