What 308 means
The resource has moved permanently to the URL in Location, and the client must repeat the request with the same method and body. It’s 301 without the POST-to-GET switch.
When servers send it
Permanent moves of API endpoints and anything that receives POSTs. Some hosts and frameworks use 308 for all permanent redirects, such as adding a trailing slash.
Why you might see it
- A permanent redirect configured to keep the method.
Using it as a developer
- Like 301, browsers and search engines treat it as permanent and cache it.
- Very old clients (from before 2015 or so) may not understand 308. That’s rarely a concern now.
If you’re visiting a website
- Nothing. Your browser follows it automatically.
Related codes
- 301 Moved Permanently: The page has moved for good to the URL in the Location header.
- 307 Temporary Redirect: The page is temporarily at the URL in the Location header. Repeat the same request there, with the same method and body.
- 302 Found: The page is temporarily at the URL in the Location header.
Where it’s defined
308 Permanent Redirect is defined in RFC 9110, section 15.4.9. It’s a 3xx code, the redirection class: look somewhere else, or use the copy you already have.
Other 3xx codes
301 Moved Permanently · 302 Found · 303 See Other · 304 Not Modified · 307 Temporary Redirect
Or search them all in the HTTP status code list.