302 Found
It's over there. For now.
What it properly means
The URI has changed temporarily, so the client should keep using the original URI in future. Clients may change the method to GET; use 307 if that matters.
- Class
- 3xx Redirection: go away
- Defined in
- RFC 9110, section 15.4.3
Get one yourself
This endpoint really answers with 302. Point your client at it and see what it does.
curl -i https://httpcodes.dev/api/302People mix this up with
302303 See Other307 Temporary Redirect
Which temporary redirect?
302 is the vague old one: clients may or may not switch to GET. 303 says always follow with a GET, which is what you want after a form POST. 307 says keep the same method and body.
-
Permanent or temporary?
301 tells browsers and search engines to update their records and stop asking for the old URL, and they will cache it hard. 302 says keep using the old URL because this is only for now.