A 302 Found response is used for the temporary redirection of a resource.
For example, a resource that was previously at
www.site1.com has temporarily moved to
If the redirect is likely to be required on a permanent basis then a 301 Moved Permanently response would be more appropriate.
A 302 is in the 3xx class of status codes which are redirection based.
Other status codes in the 3xx class include 300, 301, 303, 304, 305, 306, 307, and 308.
Below is an example of a 302 response header:
Code language: HTTP (http)
HTTP/1.1 302 Found Location: https://www.temporarydestination.com
Code language: HTML, XML (xml)
<html> <head> <title>302 Found</title></head> <body> <h1>302</h1> <h2>Found</h2> <p>The document has been temporarily moved.</p> </body></html>
Content last checked for accuracy and updated: 23rd December 2020, by Colin McDermott