Status Code 302

Found

Tells the client to look at another URL temporarily.

Details

Category

Redirection

Popularity

common

Recommended

Yes

Deprecated

No

Common Use Case

Temporary redirects, user authentication flows

Notes

Used for temporary redirections, often with HTTP 1.1.

RFC Reference

RFC 9110 HTTP/1.1 (2022)
Defines the HTTP/1.1 protocol, including semantics, caching, and connection management.

Description

Tells the client to look at another URL temporarily.

HTTP Response Example

A typical server response for a 302 Found status code looks like:

HTTP/1.1 302 Found
Date: Sun, 22 Mar 2026 12:00:00 GMT
Server: httperrors.com
Location: https://example.com/new-location
Content-Length: 0
Detailed Explanation

This status code belongs to the redirection family. That means the server is not necessarily rejecting the request, but is telling the client to change where or how it continues.

Historically, HTTP 302 Found should be read in light of RFC 9110. Standards text tends to focus on precise semantics, while production systems care about retries, user experience, dashboards, proxies, browsers, and documentation. Good engineering joins those two views instead of choosing one over the other. When teams treat a status code as both a protocol message and a product decision, they produce APIs and pages that are easier to operate and easier to trust.

A practical reading of this entry is that the server is communicating something very specific: Tells the client to look at another URL temporarily. In day-to-day work, that meaning should be reflected across controllers, reverse proxies, API gateways, and frontend assumptions. If the server sends HTTP 302, but the response body, cache headers, or application behavior tell a different story, client code starts compensating for inconsistency and the whole stack becomes harder to reason about.

Because HTTP 302 sits in the redirection category, developers should think about how the code interacts with frontend behavior, backend instrumentation, CDN layers, and search engine crawlers. A status code is never just a number in the network tab; it becomes part of your application's public contract.

If you return a redirect here, be explicit about the `Location` header, cache behavior, and whether the client is expected to reuse the original URL later. Those details determine whether the redirect helps or confuses the caller.

In implementation terms, HTTP 302 Found should appear at a deliberate decision point in your request handling code. Avoid choosing it late as a cosmetic label after the rest of the response is already formed. Client behavior should respect redirect semantics, especially around method changes, cache duration, and preservation of request bodies. If your logs show this status frequently, the surrounding context should make it obvious whether the response reflects normal traffic or a design problem.

The example attached to this code, Temporary redirects, user authentication flows, helps anchor the status in a real workflow. That matters because status codes become easier to remember when they are associated with an operational scenario rather than memorized in isolation.

A useful way to compare HTTP 302 is against other redirect codes that differ on permanence, caching, or method preservation. Substituting one for another can change browser and crawler behavior more than teams expect. This is one reason protocol precision pays off over time: the better your status taxonomy, the easier it becomes to debug client behavior, build metrics, and explain edge cases to other engineers.

From an operational perspective, HTTP 302 should be visible in logs, metrics, and alerts with enough surrounding metadata to explain why it happened. Popularity for this entry is listed as common, and that should influence how much defensive documentation and monitoring you add. Because the code is common, it is worth distinguishing healthy uses from suspicious spikes so routine traffic is not mistaken for a regression.

Redirection codes are highly visible to search engines because they influence canonicalization, crawl paths, and how ranking signals are transferred between URLs. An incorrect redirect strategy can fragment authority or cause important pages to disappear from the preferred index path. For HTTP 302, the operational takeaway is that status correctness supports SEO indirectly by making crawl behavior more predictable. Pages, APIs, and edge routes should return this code only when its meaning is exactly true.

Since this code is marked as recommended, teams can confidently use it when the semantics are an exact match. The key word is exact. Recommendation does not mean convenience; it means the code is a strong standard choice when the surrounding conditions line up.

Because this code is not deprecated, it remains part of the active vocabulary that modern web systems can use. Even so, correctness still depends on discipline. A valid status code becomes harmful if teams reuse it as shorthand for several unrelated situations.

Popularity is marked as common, which is a useful implementation signal. A common code usually has better client-library support, stronger operator familiarity, and fewer surprises in logs, dashboards, and browser tooling. A rare code can still be the correct choice, but it should be selected intentionally.

The best way to think about HTTP 302 Found is not as trivia, but as a promise. It tells the caller what happened, what should happen next, and how much confidence the client can place in the current response. The example recorded for this entry is Temporary redirects, user authentication flows, and the note says Used for temporary redirections, often with HTTP 1.1.. Together with the specification link at https://datatracker.ietf.org/doc/html/rfc9110#section-15.4.3, those details give implementers enough context to use the code intentionally rather than mechanically. That is the standard worth aiming for in production systems.

HTTP status code data sourced from official IETF RFCs and standards.

© 2026 The open source reference for HTTP status codes