← All status codes

201

Created

A resource was created. FTP would be proud.

When to actually use it

Successful POST (or PUT) that creates a new resource. Return a `Location` header with its URL.

Where people mess up

Returning 200 for a create. Your client deserves to know something *new* happened.

The joke

Like 200, but with a birth certificate. Send back the URL of your new thing, or admit you didn’t really make one.