Http Code

202

Accepted

The server has accepted the request for processing, but the process hasn't been completed yet. Eventually, the request may or may not be acted upon, as it may be disallowed during the processing. There is no mechanism to send back a response after the processing has been completed.

Use Case

A client wants to send an email using an API like sendgrid. The client sends the request with the payload, the server accepts it and sends a 202 response. The server may send this as it may be batching similar processes or processing the said payload in an asynchronous manner and does not want/need to maintain a persistent connection with the client.