202 Accepted

The request was accepted for processing, but the work has not finished and may still fail.

Status

HTTP/1.1 202 Accepted

Details

202 decouples acceptance from completion. The server has queued the work and is deliberately declining to hold the connection open while it runs. Nothing is promised about the outcome: the job may later succeed, fail, or be rejected outright.

Because it makes no promise, a useful 202 always tells the client how to find out what happened. That means a status URL in the body or in Location, and ideally an estimate of when to check back. A 202 with an empty body leaves the caller with no way to reconcile state.

Note: 202 promises nothing about the outcome. Without a status URL or job id in the response, the caller has no way to find out what happened.

Headers

Common causes

Usage notes

For clients

For servers

Examples

Queueing a report for later

HTTP request

POST /api/reports HTTP/1.1
Host: api.example.com
Content-Type: application/json

{"range":"2026-08","format":"csv"}

HTTP response

HTTP/1.1 202 Accepted
Location: /api/reports/jobs/9f21
Retry-After: 10
Content-Type: application/json; charset=utf-8

{"job_id":"9f21","state":"queued"}

Specifications

See also