3xx Redirection

HTTP 307 Temporary Redirect

Like 302, but the client must repeat the request with the same method and body.

307 Temporary Redirect works like 302, but the client must repeat the request with the same method and body at the URL in Location.

HTTP/1.1 307 Temporary Redirect

When servers send it

  • Redirecting a POST or PUT temporarily without turning it into a GET.
  • Browsers show an internal 307 when HSTS forces http to https.

How to handle it

  • Clients resend the body, so make sure the target accepts the same request.
  • For a permanent move that keeps the method, use 308.

Related status codes

Other status codes

1xx Informational

2xx Success

3xx Redirection

5xx Server error

Search all HTTP status codes