201 Created: A new resource was successfully created. 201 Created means the request succeeded and a new resource was made, such as a new customer, order or comment. It is the standard response to a successful POST that creates something. A good 201 response includes a Location header with the URL of the new resource, and usually the resource itself in the body, including its new ID. The client can then link to it or show it straight away, without another request.
Using 201 instead of a generic 200 makes an API clearer to work with. Front-end code and integration tests can check for it explicitly, and anyone reading logs can see at a glance which requests created data. Laravel, for example, returns 201 automatically when you return a newly created model from a controller.
Use when an HTTP request returns an unexpected status code (4xx or 5xx, or a redirect loop), when a user pastes an error like "419 Page Expired", "422 Unprocessable Content", "502 Bad Gateway" or "CORS error", or when debugging API calls between a frontend and a Laravel/PHP or Node backend. Finds the cause from the status code, headers and logs before changing code.
'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.