HTTP 302 Found
HTTP 302 Found is a temporary redirect: the resource is currently at the URL in the Location header, but clients should keep using the original URL in…
Quick answer
HTTP 302 Found is a temporary redirect: the resource is currently at the URL in the Location header, but clients should keep using the original URL in future. It is used for login redirects, A/B tests, geo-routing and short-term maintenance pages.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 302 Found mean?
Because the move is temporary, browsers do not cache 302 by default and search engines usually keep the original URL indexed. Like 301, browsers historically turn a POST into a GET; use 307 when the method must be preserved.
| Status code | 302 |
|---|---|
| Name | Found |
| Class | 3xx Redirection |
| Defined in | RFC 9110 §15.4.3 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | Not applicable |
| Related headers | Location |
What causes HTTP 302?
- Authentication redirects (send to /login, then back).
- Temporary campaigns, geo or language routing.
How do I fix HTTP 302?
- If the move is actually permanent, change it to 301 or 308.
- Avoid long-lived 302s on important URLs; Google may eventually treat a long-running 302 like a permanent redirect.
What should a client do after HTTP 302?
Follow the Location header for this request but keep using the original URL.
Does HTTP 302 affect SEO?
Google keeps the source URL as canonical while it believes the redirect is temporary. Use 302 only for genuinely temporary situations.
Example 302 response
HTTP/1.1 302 Found
Date: Mon, 01 Dec 2026 12:00:00 GMT
Location: https://www.example.com/login?next=/account How to return 302 Found in code
Express (Node.js)
res.redirect(302, '/new-url'); Next.js route handler
return Response.redirect(new URL('/new-url', request.url), 302); Flask (Python)
return redirect('/new-url', code=302) PHP
header('Location: /new-url', true, 302);
exit; Nginx
location = /old-url {
return 302 /new-url;
} Other 3xx status codes
Further action is needed, usually following the Location header to another URL.
Frequently asked questions
Does a 302 pass link equity?
302 vs 307?
Is 302 a client or server error?
Related
- 301 Moved Permanently HTTP 301 Moved Permanently means the resource now lives at a new URL given in the Location header, and the mov.
- 303 See Other HTTP 303 See Other tells the client to fetch a different URL with a GET request.
- 307 Temporary Redirect HTTP 307 Temporary Redirect sends the client to the URL in the Location header for now, and requires it to rep.
- 308 Permanent Redirect HTTP 308 Permanent Redirect means the resource has moved permanently to the URL in the Location header, and th.
- Open the HTTP Status Codes Reference → Free, no signup.