Ravi Sir's Cards › AWS
When do you return 202 Accepted?
This interview card answers: When do you return 202 Accepted? When the server accepted work that will finish asynchronously. 201 would claim the order resource is fully created already. Intake SendMessage to SQS , then 202 + orderId; worker writes DynamoDB afterward.
Read card text
What this card says
What it is
When the server accepted work that will finish asynchronously.
Why it matters
201 would claim the order resource is fully created already.
How / example
Intake SendMessage to SQS → 202 + orderId; worker writes DynamoDB afterward.