Skip to content
Latchkey

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

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →