Skip to content

302 Found (HTTP Status Code 302)

Updated: at 09:12 AM

HTTP status code 302 indicates that the requested resource has been temporarily moved to another URI. Unlike the 301 Moved Permanently status, a 302 redirect is temporary, and the client should continue using the original URI for subsequent requests.

Common Scenarios for 302 Status Code

Characteristics of 302 Redirects

Example Response

HTTP/1.1 302 Found
Location:
https://www.example.com/temporary-location/
Content-Length: 0

In this example, the status code 302 indicates that the originally requested resource is temporarily located at https://www.example.com/temporary-location/. The client (such as a browser) should temporarily redirect to this new URI but continue to use the original URI for future requests.

Note: According to HTTP specifications, a 302 redirect should not change the request method. For example, if the original request is a POST, the redirect request should also be a POST. However, some older browsers and clients may incorrectly change POST requests to GET requests. To avoid this issue, it’s recommended to use 303 See Other or 307 Temporary Redirect status codes when appropriate.