307 Temporary Redirect
Temporary redirect that keeps the original method and body.
| Class | Redirection (3xx) |
|---|---|
| Defined in | RFC9110, Section 15.4.8 |
| Cacheable by default | No, unless explicit freshness headers allow it |
Common causes
- A temporary redirect where the HTTP method and body must stay the same.
- HSTS or a proxy redirecting an unsafe request.
What to do
Use it instead of 302 when a POST must remain a POST after the redirect.
Related codes
- 302 Found: The resource is temporarily at a different URL, given in the Location header.
- 303 See Other: Look at another URL with a GET request to see the result, typically after a POST.
- 308 Permanent Redirect: Permanent redirect that keeps the original method and body.