2xx · Successterminal
202Accepted
The request has been accepted for processing, but the processing has not been completed. The request might or might not be eventually acted upon.
What this code obliges you to do
Retry
Do not retry automatically
Repeating the same request produces the same result. A retry loop here just multiplies load and hides the real fault.
Caching
Not cacheable by default
Caches will not store this response unless you send explicit freshness headers saying they may.
Response body
Body allowed
You may return a payload explaining the outcome — for an error, a machine-readable problem document is worth the effort.
When you see it
21
Asynchronous job queued (e.g., video processing)
2
Webhook triggered successfully
Effect on search
Neutral. Often used for background job APIs.
How to send it
1Ruby (Rails)
head :acceptedCodes people confuse with this one
2Class2xx
RetryNo
CacheNo
BodyAllowed