Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 202 Accepted
2xx Success

HTTP 202 Accepted

HTTP 202 Accepted means the server has accepted the request for processing but has not finished it. It is used for asynchronous work such as queued jobs…

Quick answer

HTTP 202 Accepted means the server has accepted the request for processing but has not finished it. It is used for asynchronous work such as queued jobs, video encoding or bulk imports, and the response usually tells the client where to check the job’s status.

Last updated · Maintained by FreeAIToolz · How we test

What does HTTP 202 Accepted mean?

202 is non-committal: the work may still fail later. Good APIs return a job ID and a status URL (in the body or a Location header) that the client can poll, or they notify the client with a webhook when the job completes.

Status code202
NameAccepted
Class2xx Success
Defined inRFC 9110 §15.3.3
Cacheable by defaultNo, unless Cache-Control says so
Safe to retry automatically?Not applicable
Related headersLocation, Retry-After

What causes HTTP 202?

  • The server queued the work instead of doing it within the request.

How do I fix HTTP 202?

  1. Return a status URL and a Retry-After hint so clients know when to poll.
  2. Provide a final state (done/failed) at the status URL; do not leave jobs pending forever.

What should a client do after HTTP 202?

Poll the status URL (respecting Retry-After) or wait for the webhook. Do not resend the original request.

Does HTTP 202 affect SEO?

No SEO impact.

Example 202 response

HTTP/1.1 202 Accepted
Date: Mon, 01 Dec 2026 12:00:00 GMT
Location: /api/jobs/9f1c
Retry-After: 10
Content-Type: application/json

{"error":{"status":202,"message":"Accepted"}}

How to return 202 Accepted in code

Express (Node.js)

res.status(202).json({ error: 'Accepted' });

Next.js route handler

return Response.json({ error: 'Accepted' }, { status: 202 });

FastAPI (Python)

return Response(status_code=202)

PHP

http_response_code(202);

Nginx

location = /example {
    return 202;
}

Other 2xx status codes

The request was received, understood and accepted.

Frequently asked questions

How long should a client poll after 202?
Use the Retry-After value if given; otherwise back off (for example 1s, 2s, 4s, capped at 30–60s) and stop after a sensible timeout.
202 vs 201?
201 means the resource already exists. 202 means the work was only queued and may still fail.
Is 202 a client or server error?
Neither. 202 is in the 2xx Success class. The request was received, understood and accepted.