202 Accepted
The HTTP status meaning the request was accepted for processing but the work has not finished yet.
In more detail
202 says nothing about whether the work will succeed. It normally comes with a Location header pointing to a job resource the client can poll for progress and the final result.
Related terms
- job resource — A resource that represents long-running work, answered with 202 Accepted and a Location the client can poll for progress and the result.
- polling — Having the client ask repeatedly, on its own schedule, whether something has changed or finished.
- Location header — The response header that gives an address: where a newly created resource lives, where a job can be watched, or where a redirect points.
- asynchronous processing — Accepting a request now and doing the work later, separately, instead of making the caller wait for it to finish.
- asynchronous — Describes work that starts now and finishes later, letting the program do other things instead of waiting for it.
- HTTP status code — The three-digit number at the start of a response, such as 200 or 404, that says how the server handled the request.
Taught in
- Actions That Do Not Fit CRUD — Modern API Architecture: REST, GraphQL & gRPC
- Large Payloads And Streaming — Modern API Architecture: REST, GraphQL & gRPC
- Event-Driven Architecture And Queues — Modern API Architecture: REST, GraphQL & gRPC
- Queues, Events And Asynchronous Work — Scalable System Design & Distributed Architecture