2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
set: 3
|
|
|
|
code: 307
|
|
|
|
title: Temporary Redirect
|
2015-11-07 03:57:14 +01:00
|
|
|
references:
|
|
|
|
"Rails HTTP Status Symbol": ":temporary_redirect"
|
2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
|
2015-11-09 02:06:31 +01:00
|
|
|
The target resource resides temporarily under a different URI and the user agent
|
|
|
|
MUST NOT change the request method if it performs an automatic redirection to
|
|
|
|
that URI.
|
2015-11-07 06:34:45 +01:00
|
|
|
|
|
|
|
Since the redirection can change over time, the client ought to continue using
|
|
|
|
the original effective request URI for future requests.
|
2015-11-07 03:57:14 +01:00
|
|
|
|
|
|
|
The server SHOULD generate a Location header field in the response containing a
|
2015-11-09 02:06:31 +01:00
|
|
|
URI reference for the different URI. The user agent MAY use the Location field
|
2015-11-07 03:57:14 +01:00
|
|
|
value for automatic redirection. The server's response payload usually contains
|
|
|
|
a short hypertext note with a hyperlink to the different URI(s).
|
|
|
|
|
2015-11-09 02:06:31 +01:00
|
|
|
Note: This status code is similar to 302 Found, except that it does not allow
|
2015-11-07 03:57:14 +01:00
|
|
|
changing the request method from POST to GET. This specification defines no
|
2015-11-09 02:06:31 +01:00
|
|
|
equivalent counterpart for [301 Moved Permanently](/301) ([RFC7238][2], however,
|
|
|
|
proposes defining the status code [308 Permanent Redirect](/308) for this purpose).
|
2015-11-07 03:57:14 +01:00
|
|
|
|
2015-11-09 02:06:31 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
* Source: [RFC7231 Section 6.4.7][1]
|
2015-11-07 03:57:14 +01:00
|
|
|
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.4.7>
|
|
|
|
[2]: <http://tools.ietf.org/html/rfc7238>
|