Skip to content

Commit b09bc3d

Browse files
committed
Error object: add type link
This enables the client to distinguish between different error conditions that share the same status code, by matching on the `type` URI. This is needed for the extension system, where the client needs to distinguish between the `profile` parameter not being supported by server, vs. the client providing insufficient profile extensions, both of which trigger a 415. This is the start of what I suggested in #683.
1 parent 9c7a03d commit b09bc3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_format/1.1/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,10 @@ An error object **MAY** have the following members:
17681768
* `links`: a [links object][links] containing the following members:
17691769
* `about`: a [link][links] that leads to further details about this
17701770
particular occurrence of the problem.
1771+
* <a id="error-objects-links-type"></a>`type`: a [link][link] whose URI
1772+
identifies the type of error that this particular error is an instance of.
1773+
When dereferenced, this URI **SHOULD** provide a human-readable explanation
1774+
of the general error.
17711775
* `status`: the HTTP status code applicable to this problem, expressed as a
17721776
string value.
17731777
* `code`: an application-specific error code, expressed as a string value.

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