- Home
- Tools
- Developer Tools
- HTTP Status Codes
- 307 Temporary Redirect
307 Temporary Redirect
The resource is temporarily at another address, and the request has to be repeated there with the same method and body.
- Class
- 3xx Redirection. The client has to take another step to finish the request, usually fetching a different address.
- Defined in
- RFC 9110
What it looks like
HTTP/1.1 307 Temporary Redirect Location: https://api2.example.com/v1/orders
When a server sends it
Where a 302 would do for a GET, but the request may be a POST, PUT or DELETE that has to arrive unchanged: an API that has moved for a while, an upload that is sent on to another server. Chrome also shows a 307 for the internal redirect from http to https on sites that use HSTS.
What to do with it
Clients follow it and send the same method and body again. A script that sends its body from a stream has to be able to send it a second time. As with a 302, the redirect is not remembered, and the next request goes to the original address.
Not to be confused with
| 302 Found | Temporary as well, but a POST usually becomes a GET. |
|---|---|
| 308 Permanent Redirect | The permanent version. |
| 303 See Other | Forces a GET. |
How Google treats it
Google treats a 307 like a 302.
All codes are on the list of HTTP status codes, which can be searched by number and by word.