HTTP 307 Temporary Redirect — Method Preserved
Warning3xx redirection
Overview
HTTP 307 Temporary Redirect is like 302 but guarantees the request method and body are not changed.
Key Details
- Status: 307 Temporary Redirect
- Category: 3xx Redirection
- Same as 302 but method MUST be preserved
- POST stays POST, PUT stays PUT
Common Causes
- Temporary redirect preserving POST method
- HTTPS upgrade redirect
- Load balancer forwarding
- API endpoint temporarily moved
Steps
- 1Follow the redirect using the same HTTP method
- 2Resend the same request body
- 3Keep using the original URL for future requests
- 4Use 308 if the redirect is permanent
Tags
http-status3xx-redirectionhttp-307httpstatus-code
More in 3xx Redirection
http-300-multiple-choicesHTTP 300 Multiple Choices — What It Means & How to Fix It
Warninghttp-301-moved-permanentlyHTTP 301 Moved Permanently — What It Means & How to Fix It
Warninghttp-302-foundHTTP 302 Found — What It Means & How to Fix It
Warninghttp-303-see-otherHTTP 303 See Other — What It Means & How to Fix It
Warninghttp-304-not-modifiedHTTP 304 Not Modified — What It Means & How to Fix It
Warninghttp-305-use-proxyHTTP 305 Use Proxy — What It Means & How to Fix It
WarningFrequently Asked Questions
307 guarantees method preservation. 302 may change POST to GET in some clients.