Error Codes Wiki

HTTP 307 Temporary Redirect — Method Preserved

Warning3xx redirection

Overview

HTTP 307 Temporary Redirect is like 302 but guarantees the request method and body are not changed.

Key Details

  • Status: 307 Temporary Redirect
  • Category: 3xx Redirection
  • Same as 302 but method MUST be preserved
  • POST stays POST, PUT stays PUT

Common Causes

  • Temporary redirect preserving POST method
  • HTTPS upgrade redirect
  • Load balancer forwarding
  • API endpoint temporarily moved

Steps

  1. 1Follow the redirect using the same HTTP method
  2. 2Resend the same request body
  3. 3Keep using the original URL for future requests
  4. 4Use 308 if the redirect is permanent

Tags

http-status3xx-redirectionhttp-307httpstatus-code

More in 3xx Redirection

Frequently Asked Questions

307 guarantees method preservation. 302 may change POST to GET in some clients.