Servers MUST return a 201 Created HTTP code

Requirement

Servers MUST return a 201 Created HTTP code

Origin

The origin of this requirement is a quote from the ActivityPub specfiication:
prefixIf an Activity is submitted with a value in the id property, servers MUST ignore this and generate a new id for the Activity.
Servers MUST return a 201 Created HTTP code
suffix , and unless the activity is transient, MUST include the new id in the Location header.
https://www.w3.org/TR/activitypub/ , § 6

id

urn:uuid:3b925cdf-89fe-4f51-b41f-26df23f58e0c

uuid

3b925cdf-89fe-4f51-b41f-26df23f58e0c

Full JSON

{
  "id": "urn:uuid:3b925cdf-89fe-4f51-b41f-26df23f58e0c",
  "type": "Behavior",
  "uuid": "3b925cdf-89fe-4f51-b41f-26df23f58e0c",
  "content": "Servers MUST return a 201 Created HTTP code\n",
  "tag": [
    {
      "name": "ActivityPubServer",
      "id": "https://socialweb.coop/tag/ActivityPubServer"
    }
  ],
  "context": [
    "https://www.w3.org/TR/activitypub/",
    {
      "name": "Client to server interaction"
    },
    {
      "name": "server responding to client posting Activities to an actor's outbox"
    }
  ],
  "origin": {
    "source": "https://www.w3.org/TR/activitypub/",
    "section": {
      "id": "https://www.w3.org/TR/activitypub/#x6-client-to-server-interactions",
      "branch": [
        6
      ]
    },
    "selector": {
      "type": "TextQuoteSelector",
      "prefix": "If an Activity is submitted with a value in the id property, servers MUST ignore this and generate a new id for the Activity. \n",
      "exact": "Servers MUST return a 201 Created HTTP code\n",
      "suffix": ", and unless the activity is transient, MUST include the new id in the Location header.\n"
    }
  },
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://socialweb.coop/ns/testing/context.json"
  ]
}

Links