3xx Redirection
307 Temporary Redirect
Temporarily redirect to another URL and repeat the request with the same method and body.
Like 302 but guarantees a POST stays a POST. Browsers also show an internal 307 when HSTS forces HTTP→HTTPS.
Notes
- Use it when an API endpoint moves temporarily and clients must re-send the same request.
Example response
HTTP/1.1 307 Temporary Redirect
Location: https://api.example.com/v2/upload
Date: Thu, 22 Oct 2026 08:00:00 GMT Check a URL’s status with curl -I https://example.com, which prints the status line and headers.