HTTP 307 Temporary Redirect — What It Means & How to Fix It
Warning3xx redirection
Overview
The HTTP 307 Temporary Redirect status code indicates the resource is temporarily at a different URL, and the client must use the same HTTP method for the redirect request.
Key Details
- Unlike 302, this status code guarantees the HTTP method will not change during the redirect.
- A POST request will remain a POST after following the redirect.
- The client should continue using the original URL for future requests.
- It was introduced in HTTP/1.1 to fix the ambiguity of 302 regarding method preservation.
Common Causes
- A resource is temporarily available at a different location.
- HTTPS enforcement redirecting HTTP to HTTPS while preserving the method.
- Load balancing or failover directing traffic to a backup server.
Steps
- 1Follow the redirect to the URL in the Location header using the same HTTP method.
- 2Resend the original request body if applicable.
- 3Continue using the original URL for future requests.
- 4Verify the redirect preserves your intended HTTP method.
Tags
httpredirectiontemporarymethod-preservation
Related Items
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
It means the resource is temporarily at another URL and the client must use the exact same HTTP method for the redirected request.