The resource is temporarily at a different URL. Unlike a 301, the original URL stays authoritative and should still be used for future requests.
Defined in RFC 9110 §15.4.3 — 302 Found · MDN reference
Post/Redirect/Get after a form submission, load-balancing a caller to a regional host, short-lived redirects to a signed download URL, and login flows that bounce a visitor through an identity provider and back.
Confirm your client does not cache a 302 as if it were permanent, and that redirect loops are bounded rather than hanging.
Follow it, but keep the original URL — it is still the canonical address. Cap redirect following at a small number of hops so a redirect loop fails fast instead of hanging. If the method matters, remember that many clients turn the follow-up into a GET.
1 endpoint in this playground answers with 302. Every one is free, needs no signup, and can be called from the browser or with curl.
GET https://funapi.dev/api/protocol/v1/hop — Redirects to /hop?hops=n-1 (Protocol Lab API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated