Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 307 Temporary Redirect
3xx Redirection

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 code307
NameTemporary Redirect
Class3xx Redirection
Defined inRFC 9110 §15.4.8
Cacheable by defaultNo, unless Cache-Control says so
Safe to retry automatically?Not applicable
Related headersLocation

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?

  1. For permanent moves use 308 (or 301 for pages).
  2. 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?
Chrome generated it locally because the site uses HSTS, upgrading http:// to https:// before any request is sent. Your server did not return it.
307 vs 302?
Both are temporary. 307 forbids changing the method; 302 historically allowed POST to become GET.
Is 307 a client or server error?
Neither. 307 is in the 3xx Redirection class. Further action is needed, usually following the Location header to another URL.