< HTTP />
fr

307 Temporary Redirect

3xx Redirection RFC 9110
Same as 302, but your POST stays a POST.

What 307 Temporary Redirect means {#what}

The resource is temporarily at another URL — and the client must use the same HTTP method for the redirected request. This is the fix for 302’s method-changing behavior. If you POST and get a 307, you POST again to the new URL.

When you’ll see a 307 {#when}

  • APIs that need to redirect non-GET requests temporarily
  • Load balancers or API gateways routing requests

When to use 307 {#use}

  • Prefer over 302 when the original request is POST, PUT, or PATCH