HTTP 302 — Found

The resource was found, but at a different URI

When to use it

Use status 302 when this is the correct HTTP response semantic: The resource was found, but at a different URI

Request and response example

GET /sign-in HTTP/1.1
Host: api.example.com

HTTP/1.1 302 Found
Location: /login

Related status codes

300, 301, 303, 304

References

MDN · RFC 9110