DD
DevDash

HTTP 307 Temporary Redirect: What It Means and When You See It

Quick Answer

HTTP 307 Temporary Redirect is similar to 302 but guarantees the HTTP method does not change during redirect. A POST request stays a POST.

HTTP 307 vs 302

HTTP 307 Temporary Redirect preserves the HTTP method and body. A POST to a 307 endpoint redirects as a POST to the new URL. HTTP 302 does not guarantee method preservation - most browsers convert POST to GET on a 302 redirect. Use 307 when redirecting form submissions or API POST/PUT requests temporarily. Use 302 for page redirects where GET is always the final method. Next.js server-side redirect() uses 307 by default.

When to Use 307

Use 307 for: temporary API gateway routing where POST payloads must be forwarded, load balancer redirects for non-GET methods, feature flag redirects for API endpoints, and OAuth flows where the method must be preserved. In Express: res.redirect(307, "/new-url"). The client will re-POST the original body to the new URL. Always pair 307 with a short or no cache TTL - it is a temporary redirect by definition.

Try the interactive tool

Convert any value instantly — no sign-up required

Open tool →

Frequently Asked Questions

Related Values

Want API access + no ads? Pro coming soon.