Commit 9a06090
committed
Return a 404 response when no record is found
The JSON API specification says:
> A server MUST respond with `404 Not Found` when processing a request to fetch a single resource that does not exist
At the moment JSON API Resources returns a 200, with an empty data
object.1 parent c0cdf65 commit 9a06090
File tree
2 files changed
+6
-0
lines changed- lib/jsonapi
- test/integration/requests
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
0 commit comments