~/devtools / http-status / 307
tool::http-status-detail

307 Temporary Redirect

Temporary redirect preserving the original HTTP method.

ad · 728×90
Status Code
307
Name
Temporary Redirect
Category
3xx

Detailed 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-Control

Response 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
Back to all status codes
// related tools
Cron Expression Generator
Build and parse cron expressions visually. Generate human-readable descriptions and preview next execution times.
jwt
JWT Decoder
Decode and inspect JWT tokens. View header, payload, and signature details.
rx
Regex Tester
Test regular expressions with live matching, group highlighting, and explanations.
Color Converter
Convert colors between HEX, RGB, HSL, and more. Pick colors visually.