3xx Redirection

HTTP 307 Temporary Redirect

The requested resource is temporarily at a different URL. Unlike 302, the request method must not change — a POST stays a POST. The client should use the original URL for future requests.

Common Causes

  • Temporary redirect preserving the original HTTP method
  • Load balancer routing to a different backend
  • HTTPS redirect where method preservation matters
  • API endpoint temporarily moved

How to Fix

  1. 1Follow the redirect using the same HTTP method
  2. 2Continue using the original URL for future requests
  3. 3If permanent, use 308 Permanent Redirect instead

Example

HTTP 307 Temporary Redirect
POST /api/data HTTP/1.1

→ 307 Temporary Redirect
→ Location: /api/v2/data
→ Client re-sends POST to new URL

Related Redirection Codes