2xx Success
We got your request and we're working on it! We'll process it later, but don't wait around - check back later to see if it's done.
Use 202 when the request is accepted but the real work will finish later, if it finishes at all.
POST https://api.example.test/api/emails/bulk202 Accepted
# Headers
Content-Type: application/json
# Body
{
"jobId": "job_123",
"status": "queued"
}The server queued the job, but the actual sending result is not known yet.
POST https://api.example.test/api/files/process202 Accepted
# Headers
Location: https://api.example.test/api/jobs/456The server accepted the work and gives the client a place to monitor progress.
Everything worked perfectly! The server understood your request and sent back exactly what you asked for.
Something new was created! Like adding a new post, user account, or file - the server made it and it now exists.
Success. The server did what you asked, but there’s nothing useful to send back in the body.