307

HTTP 307 Temporary Redirect

3xx Redirection

  1. Home
  2. > HTTP Status Codes >
  3. > 3xx >
  4. 307
3xx Redirection RFC 7231, Section 6.4.7

What is HTTP 307 Temporary Redirect?

The 307 (Temporary Redirect) status code is similar to 302 Found, but with a crucial difference: the user agent must not change the HTTP method of the original request. If the original request was POST, the redirect request must also be POST. This ensures that form data is not lost during a temporary redirect.

Common Use Cases

  • Temporary redirects preserving POST method
  • API redirects where method must be preserved
  • Redirecting form submissions without data loss
Help2Code Logo
Menu