What 307 means
Like 302, but the client must not change POST into GET. The right temporary redirect for APIs.
Common causes
- Temporary moves, http → https upgrades by some servers (HSTS internal redirects in browsers show as 307).
How to fix it
If you're calling an API
- Follow Location with the same method and body (curl -L does this).
If you run the server
- Prefer 307 over 302 for API endpoints.
Should you retry?
Repeat the request at Location.
Example response
HTTP/1.1 307 Temporary Redirect
Location: https://api.example.com/v1/itemsRelated headers: Location.
Defined in: RFC 9110 (HTTP Semantics). 307 is a redirection.