308 Permanent Redirect
It's over there forever. Ask the same way.
What it properly means
Like 301, except the client must not change the method: a POST stays a POST on the second request.
- Class
- 3xx Redirection: go away
- Defined in
- RFC 9110, section 15.4.9
Get one yourself
This endpoint really answers with 308. Point your client at it and see what it does.
curl -i https://httpcodes.dev/api/308People mix this up with
-
Which permanent redirect?
Both mean moved for good. With 301, clients are allowed to turn a POST into a GET when they follow it. 308 forbids that: the method and body stay the same.