Internet Engineering Task Force (IETF) J. Reschke Request for Comments: 7538 greenbytes Obsoletes: 7238 April 2015 Category: Standards Track ISSN: 2070-1721The Hypertext Transfer Protocol Status Code 308 (Permanent Redirect)
Reschke Standards Track [Page 1]
RFC 7538 HTTP Status Code 308 April 2015
Table of Contents
1. Introduction
HTTP defines a set of status codes for the purpose of redirecting a request to a different URI ([RFC3986]). The history of these status codes is summarized in Section 6.4 of [RFC7231], which also classifies the existing status codes into four categories.+-------------------------------------------+-----------+-----------+ | | Permanent | Temporary | +-------------------------------------------+-----------+-----------+ | Allows changing the request method from | 301 | 302 | | POST to GET | | | | Does not allow changing the request | - | 307 | | method from POST to GET | | | +-------------------------------------------+-----------+-----------+Section 6.4.7 of [RFC7231] states that it does not define a permanent variant of status code 307; this specification adds the status code 308, defining this missing variant (Section 3).
2. Notational Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
Reschke Standards Track [Page 2]
RFC 7538 HTTP Status Code 308 April 2015 3. 308 Permanent RedirectThe 308 (Permanent Redirect) status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs. Clients with link editing capabilities ought to automatically re-link references to the effective request URI (Section 5.5 of [RFC7230]) to one or more of the new references sent by the server, where possible.
4. Deployment Considerations
Section 6 of [RFC7231] requires recipients to treat unknown 3xx status codes the same way as status code 300 (Multiple Choices) ([RFC7231], Section 6.4.1). Thus, servers will not be able to rely on automatic redirection happening similar to status codes 301, 302, or 307.
Reschke Standards Track [Page 3]
RFC 7538 HTTP Status Code 308 April 2015
Client request:
5. Security Considerations
All security considerations that apply to HTTP redirects apply to the 308 status code as well (see Section 9 of [RFC7231]).
Reschke Standards Track [Page 4]
RFC 7538 HTTP Status Code 308 April 2015 6. IANA ConsiderationsThe "Hypertext Transfer Protocol (HTTP) Status Code Registry" (defined in Section 8.2 of [RFC7231] and located at <http://www.iana.org/assignments/http-status-codes>) has been updated to reference this specification.
+-------+--------------------+----------------------------------+ | Value | Description | Reference | +-------+--------------------+----------------------------------+ | 308 | Permanent Redirect | Section 3 of this specification | +-------+--------------------+----------------------------------+ 7. References 7.1. Normative References[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
7.2. Informative References
[HTML] Hickson, I., Berjon, R., Faulkner, S., Leithead, T., Doyle
Reschke Standards Track [Page 5]
RFC 7538 HTTP Status Code 308 April 2015
Acknowledgements