A Python script uses the 'requests' library to make a POST request to create a new resource. Which HTTP status code indicates successful creation?
201 Created signals that the POST succeeded and a new resource now exists; the response typically includes a Location header pointing to its URL. This satisfies the stem's requirement for the status code indicating successful resource creation, unlike 200 or 204.
Why this answer
According to the REST API conventions, a successful POST request returns status code 201 Created.