307 Temporary Redirect

HTTP 307 Temporary Redirect is a 3xx redirection status. Like 302, but the client must repeat the request with the same method and body at the new URL.

307Status code
3xxRedirection
NoCacheable by default
RFC 9110 §15.4.8Defined in

Common causes

What to do

Choose 307 over 302 whenever the method must not change.

Example response

HTTP/1.1 307 Temporary Redirect
Location: https://example.com/new-path
Content-Length: 0

How to send a 307

nginx    return 307 https://example.com/new-path;
Apache   Redirect 307 /old https://example.com/new-path
Express  res.redirect(307, '/new-path');
PHP      header('Location: /new-path', true, 307);

Other 3xx codes

Frequently asked questions

What does HTTP 307 mean?
Like 302, but the client must repeat the request with the same method and body at the new URL.
Is 307 an error?
No. 3xx codes are redirection responses, not errors.