HTTP 307 — Temporary Redirect

The request should be repeated with another URI, but future requests should still use the original URI

When to use it

Use status 307 when this is the correct HTTP response semantic: The request should be repeated with another URI, but future requests should still use the original URI

Request and response example

GET /old-resource HTTP/1.1
Host: api.example.com

HTTP/1.1 307 Temporary Redirect
Location: /new-resource

Related status codes

300, 301, 302, 303

References

MDN · RFC 9110