HTTP 307 Temporary Redirect — What It Means

What HTTP status code 307 Temporary Redirect means, when servers return it, and how to handle it correctly.

Published September 23, 2026

HTTP 307 Temporary Redirect sends the client to another URL for now and requires the same method and body to be reused, unlike 302.

What it means

Use it when a POST must be repeated to a different URL, such as during maintenance or load shifting.

Common causes: Temporary server moves; HSTS internal redirects; API endpoint switches.

On the wire

POST /api/v1/orders HTTP/1.1
HTTP/1.1 307 Temporary Redirect
Location: https://api2.example.com/orders
A typical 307 exchange.

Practical examples

Test it from the shell

curl -i https://example.com/path   # look for HTTP 307

Handling 307 in code or config

res.redirect(307, 'https://api2.example.com/orders')

How to fix it

Use 308 for permanent redirect with method preserved; Make sure the target accepts the same method; Avoid chains.

1. Reproduce: curl -i <url>
2. Confirm the status is 307
3. Apply the fix above and re-test

Common mistakes

  • Treating this as an error when it is a normal part of HTTP.
  • Make sure the target accepts the same method
  • Ignoring the response headers that explain the details.

Key takeaways

  • 307 means Temporary Redirect.
  • HTTP 307 Temporary Redirect sends the client to another URL for now and requires the same method and body to be reused, unlike 302.
  • Read the response headers and logs for the exact cause.

FAQ

307 vs 302?

307 guarantees the method and body are preserved.

Is 307 a client or server error?

It is a redirection status code, in the 3xx class.

More HTTP articles