#?SuikaWiki/0.9 page-icon="HTTP" [[#comment]] * 仕様書から ** RFC 1945 (HTTP/1.0); RFC 2068・2616 (HTTP/1.1) 10.2.2 201 Created > The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URI(s) returned in the entity of the response[INS[, [INS[{2068,2616}]] with the most specific [DEL[URL]] [INS[URI]] for the resource given by a Location header field]]. [INS[[INS[{2616}]] The response SHOULD include an entity containing a list of resource characteristics and location(s) from which the user or user agent can choose the one most appropriate. The entity format is specified by the media type given in the Content-Type header field.]] The origin server [DEL[[INS[{1945}]] should]] [INS[[INS[{2068}]] MUST]] create the resource before [DEL[[INS[{1945}]] using this Status-Code]] [INS[[INS[{2068}]] returning the 201 status code]]. If the action cannot be carried out immediately, [DEL[[INS[{1945}]] the server must include in the response body a description of when the resource will be available; otherwise,]] the server [DEL[[INS[{1945, 2068}]] should]] [INS[[INS[{2616}]] SHOULD]] respond with 202 [DEL[[INS[{1945}]] (accepted)]] [INS[[INS[{2068}]] (Accepted) response instead]]. 要求は満たされ、新しい資源が作られました。新しく作られた資源は応答の実体中で返される URI (群) により参照することができます。 [INS[その資源を最も特定する URI は [CODE(HTTP)[[[Location]]]] 頭欄で与えます。]] [INS[応答は、利用者又は利用者エージェントが最も適切なものを選ぶことができる、資源の特徴及び位置の一覧を含んだ実体を含む'''べきです'''。実体書式は [CODE(HTTP)[[[Content-Type]]]] 頭欄に与えられた媒体型により規定されます。]] 起源サーバーは、 [CODE(HTTP)[201]] 状態符号を返す前に資源を作成[DEL[するべきです]] [INS[し'''なければなりません''']]。 この動作をすぐに実行できない時には、[DEL[サーバーは応答本体に資源がいつ利用可能になるかの説明を含まなければなりません。そうでなければ、]] サーバーは代わりに [CODE(HTTP)[[[202]]]] (受理) 応答で応答する'''べきです'''。 [DEL[ > [INS[{1945}]] Of the methods defined by this specification, only POST can create a resource. この仕様書で定義された method の中では、 [CODE(HTTP)[[[POST]]]] だけが資源を作成できます。 ]DEL] [INS[ > [INS[{2616}]] A 201 response MAY contain an ETag response header field indicating the current value of the entity tag for the requested variant just created, see section 14.19. [CODE(HTTP)[201]] 応答は、丁度作られた要求された変種の[[実体札]]の現在値を示す [CODE(HTTP)[[[ETag]]]] 応答頭欄を含んでいても'''構いません'''。 ]INS] ** RFC の部分の License [[RFCのライセンス]] * メモ