What Is HTTP 307 Temporary Redirect?
HTTP 307 Temporary Redirect explained, and what it means when you see it in CI/CD and deployments.
HTTP 307 is a temporary redirect that preserves the original HTTP method and body.
What it means
Unlike 302, which clients often downgrade to GET, a 307 guarantees a POST stays a POST when redirected. This matters for API calls that must not lose their method.
When you see it in CI/CD
When CI scripts POST to an endpoint that 307-redirects, the method is preserved. With a 302 some clients would silently switch to GET and break the call.
Key takeaways
- 307 is a temporary redirect.
- It preserves the method and body.
- Safer than 302 for POST requests.
Related guides
What Is HTTP 302 Found?HTTP 302 Found is a temporary redirect. Learn how it differs from 301 and affects CI requests.
What Is HTTP 308 Permanent Redirect?HTTP 308 Permanent Redirect is like 301 but preserves the method. Learn when it matters.
What Is a REST API? Resource-Oriented Web APIsA REST API exposes resources over HTTP using standard methods and status codes. Learn what REST is and how CI…