HTTP 307 Temporary Redirect
HTTP 307 Temporary Redirect sends the client to the URL in the Location header for now, and requires it to repeat the request with the same method and body.
Quick answer
HTTP 307 Temporary Redirect sends the client to the URL in the Location header for now, and requires it to repeat the request with the same method and body. Browsers also show a 307 internally when HSTS upgrades an http:// URL to https://.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 307 Temporary Redirect mean?
307 is the method-preserving version of 302: a POST stays a POST. The “307 Internal Redirect” you see in Chrome DevTools is not sent by the server at all; it is the browser applying HSTS or a similar rule before making the request.
| Status code | 307 |
|---|---|
| Name | Temporary Redirect |
| Class | 3xx Redirection |
| Defined in | RFC 9110 §15.4.8 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | Not applicable |
| Related headers | Location |
What causes HTTP 307?
- A temporary move of an API endpoint or form handler.
- Chrome/Edge HSTS upgrade (shown as 307 Internal Redirect).
How do I fix HTTP 307?
- For permanent moves use 308 (or 301 for pages).
- An HSTS 307 needs no fix; it is the browser enforcing HTTPS.
What should a client do after HTTP 307?
Repeat the same request (method and body) to the Location URL.
Does HTTP 307 affect SEO?
Treated like 302: the original URL usually stays indexed. Googlebot does not see browser-internal HSTS 307s.
Example 307 response
HTTP/1.1 307 Temporary Redirect
Date: Mon, 01 Dec 2026 12:00:00 GMT
Location: https://api.example.com/v2/upload How to return 307 Temporary Redirect in code
Express (Node.js)
res.redirect(307, '/new-url'); Next.js route handler
return Response.redirect(new URL('/new-url', request.url), 307); Flask (Python)
return redirect('/new-url', code=307) PHP
header('Location: /new-url', true, 307);
exit; Nginx
location = /old-url {
return 307 /new-url;
} Other 3xx status codes
Further action is needed, usually following the Location header to another URL.
Frequently asked questions
What is “307 Internal Redirect” in Chrome?
307 vs 302?
Is 307 a client or server error?
Related
- 302 Found HTTP 302 Found is a temporary redirect: the resource is currently at the URL in the Location header, but clien.
- 308 Permanent Redirect HTTP 308 Permanent Redirect means the resource has moved permanently to the URL in the Location header, and th.
- 301 Moved Permanently HTTP 301 Moved Permanently means the resource now lives at a new URL given in the Location header, and the mov.
- 303 See Other HTTP 303 See Other tells the client to fetch a different URL with a GET request.
- Open the HTTP Status Codes Reference → Free, no signup.