Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

HTTP 202 vs 201

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

HTTP 202 vs 201 Status codes tell clients what “success” means. Wrong codes confuse frontend retries. 201 Created = resource finished. 202 Accepted = request accepted for processing that is not done yet. Intake Lambda returns statusCode 202 and a body with orderId; worker creates the DynamoDB row asynchronously. Mobile app shows “Order received” immediately from 202, then polls GET /orders/{id} wh
HTTP 202 vs 201 · Download PNG
Read card text

What this card says

Why do we need it?

Status codes tell clients what “success” means. Wrong codes confuse frontend retries.

What is it?

201 Created = resource finished. 202 Accepted = request accepted for processing that is not done yet.

How to do it

Intake Lambda returns statusCode 202 and a body with orderId; worker creates the DynamoDB row asynchronously.

statusCode: 202

Example

Mobile app shows “Order received” immediately from 202, then polls GET /orders/{id} when you add it later.

See all AWS revision cards