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.

Headers

Common causes

How to fix it

As the client

As the server

Examples

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

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

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

RFC 9110 §15.3.3

See also