← Back to all status codes
3xx Series
Safe to retry
307 Temporary Redirect
Similar to 302, but explicitly requires the client to retain the same HTTP method (e.g. POST remains POST) during the redirection.
🌍
SEO Impact
Functions similarly to a 302. Use this strictly for temporary API or form redirects.
🔧
Common Causes
- 1Form submission redirects
- 2HSTS upgrades (internal browser tracking)
Code Examples
Python (Flask)
return redirect(url_for('login'), code=307)