Skip to content

Commit 74b0580

Browse files
authored
Add server responsibility to reject unsupported, extended requests. (json-api#1461)
1 parent f845a33 commit 74b0580

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_format/1.1/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ parameters other than `ext` and `profile` parameters in the server's
6161
### <a href="#content-negotiation-servers" id="content-negotiation-servers" class="headerlink"></a> Server Responsibilities
6262

6363
If a request specifies the `Content-Type` header with the JSON:API media type,
64-
servers **MUST** respond with a `415 Unsupported Media Type` status code if that
65-
media type contains any media type parameters other than `ext` or `profile`.
64+
servers **MUST** respond with a `415 Unsupported Media Type` status code if
65+
that media type contains any media type parameters other than `ext` or
66+
`profile`. If a request specifies the `Content-Type` header with an instance of
67+
the JSON:API media type modified by the `ext` media type parameter and that
68+
parameter contains an unsupported extension URI, the server **MUST** respond
69+
with a `415 Unsupported Media Type` status code.
6670

6771
> Note: Older JSON:API servers that do not support the `ext` or `profile` media
6872
type parameters will respond with a `415 Unsupported Media Type` client error

0 commit comments

Comments
 (0)
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