Re: [Specifications] Make hydra:error compatible with RFC 7807 (#178)

Just to be clear, this is how Hydra-enabled APIs should respond when a problem occurs:

```http
Content-Type: application/problem+json
Link: <http://www.w3.org/ns/hydra/problem+json/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"

{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "detail": "Your current balance is 30, but that costs 50.",
    "instance": "/account/12345/msgs/abc",
    "balance": 30,
    "accounts": ["/account/12345", "/account/67890"]
}
```

My hope is that we can avoid the inline JSON-LD syntax and just do it all in the linked `problem+json/context.jsonld` file.

-- 
GitHub Notification of comment by asbjornu
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/178#issuecomment-455109482 using your GitHub account

Received on Thursday, 17 January 2019 09:50:10 UTC