302 Found

The resource is temporarily at a different URL. Keep using the original URL for future requests.

Status

HTTP/1.1 302 Found

Details

302 is the most common redirect on the web and also the most misused. It means the move is temporary, so clients must not update stored links and search engines keep indexing the original URL.

Its history is messy. The original spec required the method to be preserved, but browsers converted POST to GET anyway, so RFC 9110 documents that behavior as allowed. Modern code should use 303 to force a GET or 307 to preserve the method, and reserve 302 for legacy compatibility.

Headers

Common causes

How to fix it

As the client

As the server

Examples

GET /account HTTP/1.1
Host: app.example.com

HTTP/1.1 302 Found
Location: /login?next=%2Faccount

Notes for proxy users

In scraping, a sudden 302 to a captcha or consent page is the usual shape of a soft block. Rotating to a clean IP or slowing the request rate resolves it more often than changing the request itself.

Specifications

RFC 9110 §15.4.3

See also