What does HTTP status code 302 mean?
The 302 Found status code indicates that the resource is temporarily located at a different URI specified in the Location header.
When to use it in APIs
Used for temporary redirections. Like 301, standard clients often change POST to GET when redirected via 302.
How it compares to other codes
- 307 Temporary Redirect: The modern counterpart that guarantees the HTTP method does not change during redirection.
- 301 Moved Permanently: Represents a permanent redirect.