From 7891bdf57a5a384b51e40ff140de3054e0be7216 Mon Sep 17 00:00:00 2001 From: Lucas Hosseini Date: Wed, 27 Apr 2016 03:24:02 +0200 Subject: [PATCH 1/3] Add response status for POST with inexistent related resource. --- _format/1.0/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_format/1.0/index.md b/_format/1.0/index.md index 40c49a398..9b9d0b34d 100644 --- a/_format/1.0/index.md +++ b/_format/1.0/index.md @@ -1271,6 +1271,11 @@ had returned it back in a `201` response. A server **MAY** return `403 Forbidden` in response to an unsupported request to create a resource. +##### 404 Not Found + +A server **MUST** return `404 Not Found` when processing a request that +references a related resource that does not exist. + ##### 409 Conflict A server **MUST** return `409 Conflict` when processing a `POST` request to From b43d2df1f969128ed4bf7364f57e52580d0b7e0d Mon Sep 17 00:00:00 2001 From: Lucas Hosseini Date: Wed, 28 Sep 2016 23:21:33 +0200 Subject: [PATCH 2/3] Add entries to normative-statements.json files. --- _format/1.0/normative-statements.json | 14 ++++++++++++++ _format/1.1/normative-statements.json | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/_format/1.0/normative-statements.json b/_format/1.0/normative-statements.json index 4bff8b5d5..2d40e9f09 100644 --- a/_format/1.0/normative-statements.json +++ b/_format/1.0/normative-statements.json @@ -181,6 +181,7 @@ layout: null { "id": "create-responses-202", "type": "normative-statements" }, { "id": "create-responses-204", "type": "normative-statements" }, { "id": "create-responses-403", "type": "normative-statements" }, + { "id": "create-responses-404-related", "type": "normative-statements" }, { "id": "create-responses-409-exists", "type": "normative-statements" }, { "id": "create-responses-409-bad-type", "type": "normative-statements" }, { "id": "create-responses-409-error-details", "type": "normative-statements" }, @@ -1770,6 +1771,19 @@ layout: null } } }, + { + "id": "create-responses-404-related", + "type": "normative-statements", + "attributes": { + "level": "MAY", + "description": "A server **MUST** return `404 Not Found` when processing a request that references a related resource that does not exist." + }, + "relationships": { + "section": { + "data": { "id": "creating-updating-deleting", "type": "sections" } + } + } + }, { "id": "create-responses-409-exists", "type": "normative-statements", diff --git a/_format/1.1/normative-statements.json b/_format/1.1/normative-statements.json index c90cf7fa2..c0c264da8 100644 --- a/_format/1.1/normative-statements.json +++ b/_format/1.1/normative-statements.json @@ -185,6 +185,7 @@ layout: null { "id": "create-responses-202", "type": "normative-statements" }, { "id": "create-responses-204", "type": "normative-statements" }, { "id": "create-responses-403", "type": "normative-statements" }, + { "id": "create-responses-404-related", "type": "normative-statements" }, { "id": "create-responses-409-exists", "type": "normative-statements" }, { "id": "create-responses-409-bad-type", "type": "normative-statements" }, { "id": "create-responses-409-error-details", "type": "normative-statements" }, @@ -1826,6 +1827,19 @@ layout: null } } }, + { + "id": "create-responses-404-related", + "type": "normative-statements", + "attributes": { + "level": "MAY", + "description": "A server **MUST** return `404 Not Found` when processing a request that references a related resource that does not exist." + }, + "relationships": { + "section": { + "data": { "id": "creating-updating-deleting", "type": "sections" } + } + } + }, { "id": "create-responses-409-exists", "type": "normative-statements", From 8cd108e88188f9de9c967c435efae04d01d32150 Mon Sep 17 00:00:00 2001 From: Lucas Hosseini Date: Wed, 28 Sep 2016 23:28:37 +0200 Subject: [PATCH 3/3] Update _format/1.1/index.md --- _format/1.1/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_format/1.1/index.md b/_format/1.1/index.md index 33e6f1aec..382c82c6e 100644 --- a/_format/1.1/index.md +++ b/_format/1.1/index.md @@ -1292,6 +1292,11 @@ had returned it back in a `201` response. A server **MAY** return `403 Forbidden` in response to an unsupported request to create a resource. +##### 404 Not Found + +A server **MUST** return `404 Not Found` when processing a request that +references a related resource that does not exist. + ##### 409 Conflict A server **MUST** return `409 Conflict` when processing a `POST` request to pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy