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 code | 202 |
|---|---|
| Name | Accepted |
| Class | 2xx Success |
| Defined in | RFC 9110 §15.3.3 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | Not applicable |
| Related headers | Location, Retry-After |
What causes HTTP 202?
- The server queued the work instead of doing it within the request.
How do I fix HTTP 202?
- Return a status URL and a Retry-After hint so clients know when to poll.
- 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?
202 vs 201?
Is 202 a client or server error?
Related
- 201 Created HTTP 201 Created means the request succeeded and a new resource was created as a result.
- 200 OK HTTP 200 OK means the request succeeded.
- 303 See Other HTTP 303 See Other tells the client to fetch a different URL with a GET request.
- 503 Service Unavailable HTTP 503 Service Unavailable means the server is temporarily unable to handle the request, because it is overl.
- Open the HTTP Status Codes Reference → Free, no signup.