307 Temporary Redirect

Temporarily elsewhere; repeat the same method.

3xx · Redirection

What it means

The resource is temporarily at the URL in Location, and the client must repeat the request with the same method and body. A POST stays a POST.

Why you're seeing it

  • Temporary redirects in APIs, where changing the method would break the request.
  • Browsers show an "Internal Redirect" 307 when HSTS upgrades http:// to https:// before any request leaves the machine.

How to fix it

  • If the move is permanent, use 308.
  • If you want the client to switch to GET, use 303.

Example response

HTTP/1.1 307 Temporary Redirect
Location: https://api-2.example.com/v1/orders
Content-Length: 0