tool::http-status-detail
307 Temporary Redirect
Temporary redirect preserving the original HTTP method.
Status Code
307
Name
Temporary Redirect
Category
3xxDetailed Explanation
HTTP 307 Temporary Redirect indicates that the requested resource is temporarily located at a different URL. Unlike 302, the client must preserve the original HTTP method (POST, PUT, etc.) when following the redirect. Since some clients change POST to GET on a 302 redirect, 307 is the safer choice when method preservation is required.
Common Causes
- ▸A POST request must be temporarily forwarded to another endpoint
- ▸An API migration requires a temporary redirect with method preservation
- ▸A load balancer temporarily routes requests to a specific server
- ▸Switching to a backup server during maintenance without losing POST data
How to Fix
- 1.Use 308 Permanent Redirect for permanent moves
- 2.Verify the Location header contains the correct temporary URL
- 3.For GET-only redirects, 302 may be more appropriate
- 4.Check for infinite redirect loops
Related HTTP Headers
LocationCache-ControlResponse Example
HTTP/1.1 307 Temporary Redirect Location: https://api2.example.com/v1/users Cache-Control: no-cache
Related Status Codes
300Multiple ChoicesMultiple options for the requested resource.→301Moved PermanentlyThe resource has permanently moved to a new URL.→302FoundThe resource is temporarily at a different URL.→303See OtherRedirect to another resource using GET.→304Not ModifiedThe cached version is still valid; no new content to return.→
ad · 300×250
// related tools