302 Found
Temporary redirect to the Location URL; browsers may change POST to GET.
Common causes
- Temporary redirect: after login, maintenance pages, A/B tests
- The default of many frameworks' redirect()
How to fix
- If the move is permanent, switch to 301 / 308 to keep SEO
- For APIs that must keep the POST method, use 307 instead of 302
Detailed reference (MDN) ↗RFC 9110 §15.4.3 ↗
Which code should I use?
- 302 / 303 / 307: Temporary redirects. 302 may turn POST into GET; 303 always switches to GET (use after a form submit); 307 keeps the method.
