202 vs 200: Accepted vs OK

202 and 200 can look similar in logs, but they tell clients, crawlers, and API consumers different things.

AspectHTTP 202 โ€” AcceptedHTTP 200 โ€” OK
DefinitionAccepted describes how the server processed the request and what the client should do next.The server successfully processed the request and is returning the requested resource or result. This is the most common status code in normal web traffic.
Plain-language summaryHTTP 202 Accepted indicates a success response outcome.The server received the request, processed it, and is returning the result. This is the expected response for most GET, POST, PUT, and PATCH requests. If you see 200 in your logs, the connection and request lifecycle completed without error โ€” though the business logic in the response body may still contain application-level errors depending on the API design.
When to useHTTP 202 Accepted indicates a success response outcome.Return 200 when the request succeeded and there is a body to return. For successful creation use 201. For successful deletion or updates with no body use 204. Avoid wrapping error messages inside 200 responses โ€” it breaks client error handling and monitoring dashboards.
Client behaviorClient handles 202 according to success semantics.Clients display the response body as-is. Browsers render the page. API clients parse the JSON body. No retry is attempted. If caching headers are present, the response may be stored.
Caching behaviorSee 202 caching spec.Cacheable by default if Cache-Control, Expires, or Last-Modified headers are present. Without explicit cache headers, client behavior varies. Set Cache-Control: no-store for dynamic API responses, or appropriate max-age for stable resources.
SEO / crawler impactSearch crawlers interpret 202 (success) for indexation and link equity accordingly.Search crawlers interpret 200 (success) for indexation and link equity accordingly.
API / backend impactAPI clients branching on 202 expect Accepted semantics.API clients branching on 200 expect OK semantics.
Safe to retry?Only after fixing the underlying causeOnly after fixing the underlying cause

Common real-world scenarios

When you see HTTP 202

202 appears in production when: Normal protocol behavior.

When you see HTTP 200

High-volume 200s are normal. Watch for latency spikes on 200 responses โ€” they indicate slow processing before the successful response. Alert on p99 latency, not just 5xx rate. Application errors returned inside 200 bodies (common in older RPC-style APIs) are invisible to standard APM dashboards unless you parse the body.

Decision rule

Use 202 when the response should communicate accepted behavior; use 200 when ok is the accurate protocol signal.

A frequent mistake is swapping 202 and 200 for convenience; that causes client retry bugs, incorrect cache signals, and misleading monitoring data.

Use 202 when the correct protocol signal is Accepted. Use 200 when the correct signal is OK. Returning either code for the wrong reason breaks client expectations, cache behavior, and monitoring accuracy.

FAQ

What is the biggest difference between 202 and 200?

202 communicates Accepted, while 200 communicates OK. Choosing the right one keeps clients and intermediaries predictable.

Do 202 and 200 have SEO or caching impact?

Yes. Search engines and caches interpret status classes differently. Use each code according to its semantics to avoid accidental indexing, stale responses, or crawl inefficiency.

Can APIs safely return 202 instead of 200?

Only when it matches contract semantics. API clients often branch logic by exact code, so swapping them can break retries, auth handling, or user-facing errors.

Full guides

HTTP 202 Accepted โ€” full guide ยท HTTP 200 OK โ€” full guide ยท All comparisons ยท HTTP 202 status reference ยท HTTP 200 status reference

Related comparisons