HTTP 202 Accepted

The request has been accepted for processing, but the processing has not been completed.

2xx Success

202

Accepted

Description

The 202 Accepted status code indicates that the request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place. There is no facility in HTTP for re-sending a status code from an asynchronous operation. The 202 response is intentionally noncommittal. Its purpose is to allow a server to accept a request for some other process (perhaps a batch-oriented process that is only run once per day) without requiring that the user agent's connection to the server persist until the process is completed.

When Is It Used?

Used for asynchronous operations where the server queues the request for later processing. Examples include batch jobs, email sending, video processing, or any long-running task that will be completed in the background.

Example Response

HTTP/1.1 202 Accepted
Content-Type: application/json

{"status": "queued", "jobId": "abc-123"}

Look Up Any Status Code

Browse all status codes