2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
set: 2
|
|
|
|
code: 201
|
|
|
|
title: Created
|
2015-11-07 02:41:41 +01:00
|
|
|
references:
|
|
|
|
"Rails HTTP Status Symbol": ":created"
|
2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
|
2015-11-07 02:41:41 +01:00
|
|
|
The 201 (Created) status code indicates that the request has been fulfilled and
|
|
|
|
has resulted in one or more new resources being created. The primary resource
|
|
|
|
created by the request is identified by either a Location header field in the
|
|
|
|
response or, if no Location field is received, by the effective request URI.
|
|
|
|
|
|
|
|
The 201 response payload typically describes and links to the resource(s)
|
2015-11-07 04:03:35 +01:00
|
|
|
created. See [Section 7.2 of RFC7231][2] for a discussion of the meaning and
|
2015-11-07 02:41:41 +01:00
|
|
|
purpose of validator header fields, such as ETag and Last-Modified, in a 201
|
|
|
|
response.
|
|
|
|
|
2015-11-07 04:03:35 +01:00
|
|
|
Source: [RFC7231 Section 6.3.2][1]
|
2015-11-07 02:41:41 +01:00
|
|
|
|
2015-11-07 04:03:35 +01:00
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.3.2>
|
|
|
|
[2]: <http://tools.ietf.org/html/rfc7231#section-7.2
|