303 See Other - HTTP | MDN (original) (raw)

The HTTP 303 See Other redirection response status code indicates that the browser should redirect to the URL in the Location header instead of rendering the requested resource.

This response code is often sent back as a result of PUT or POST methods so the client may retrieve a confirmation, or view a representation of a real-world object (see HTTP range-14). The method to retrieve the redirected resource is always GET.

Status

Examples

303 response on form submission

The client in this example sends a POST request to submit a form to a generic subscription.

POST /subscribe HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 50

name=Brian%20Smith&email=brian.smith%40example.com

The server may send back a response with a 303 status and a confirmation page in the Location header, so the user is redirected there after receiving the response.

HTTP/1.1 303 See Other
Location: https://www.example.com/confirmation/event/123
Content-Type: text/html; charset=UTF-8
Content-Length: 0

Specifications

Specification
HTTP Semantics # status.303

See also