Skip to content

Commit

Permalink
Add constraint discovery for client errors
Browse files Browse the repository at this point in the history
  • Loading branch information
csarven committed Jun 23, 2020
1 parent 88baa6e commit e7dc1db
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions main/resource-access.bs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,25 @@ requests.
[[Source](https://github.com/solid/specification/pull/160#issuecomment-636822687)].


## Constraints and Problem Details ## {#constraints-problem-details}

Servers MUST publish any constraints on clients’ ability to create or update
resources by adding a `Link` header with an appropriate context URI, a link
relation of `http://www.w3.org/ns/ldp#constrainedBy`, and a target URI
identifying a set of constraints [[!RFC8288]], to all responses to requests
that fail due to violation of those constraints. For example, a server that
refuses resource creation requests via HTTP PUT, POST, or PATCH would return
this `Link` header on its `4xx` responses to such requests. The same `Link`
header MAY be provided on other responses. The representation of the
constraints MUST have an RDF serialisation. The URIs of the constraints that
are defined by this specification SHOULD be used where applicable. Servers
MUST NOT allow clients to update or delete constraints under its authority.
The appropriate context URI can vary based on the request's semantics and
method; unless the response is otherwise constrained, the default (the
effective request URI) SHOULD be used.
[[Source](https://github.com/solid/specification/issues/44#issuecomment-647554318)].


## Auxiliary Resources ## {#rm}

### Background and Need ### {#ar-need}
Expand Down

0 comments on commit e7dc1db

Please sign in to comment.