On successful creation respond with 201 Created, a Location header pointing to the new resource, and ideally its representation.
Why This Matters
Returning 200 with no Location forces clients to guess the new resource's URL, breaking standard hypermedia and client tooling expectations.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.