302Found
The requested resource resides temporarily under a different URI. Previously known as 'Moved Temporarily'.
What this code obliges you to do
Safe to retry
Repeating the same request can succeed, so a client may back off and try again. Honour Retry-After when the response sends one.
Not cacheable by default
Caches will not store this response unless you send explicit freshness headers saying they may.
Body allowed
You may return a payload explaining the outcome — for an error, a machine-readable problem document is worth the effort.
May be rewritten to GET
User agents have long rewritten POST to GET when following this code, and the body is dropped. Use 307 or 308 if the method matters.
Original URL is kept
A temporary redirect leaves the original URL in the index. Use it for A/B tests, maintenance, and geo or device routing.
When you see it
3Temporary landing pages
A/B testing
Geo-redirects
Effect on search
Search engines will follow the redirect but won't pass link equity securely. The old URL remains in the index. Use strictly for temporary campaigns.
How to send it
1res.redirect(302, '/temporary-event-page');