Closed jimcue closed 6 years ago
204 No Content would be perfect.
As mentioned by @jimcue the JSON API spec states that the response code in this scenario MUST be 200 OK
: http://jsonapi.org/format/#fetching-resources-responses
Fixed via #80. Will be available in a new release later today (or tomorrow).
A well-formed request that returns no results will get a 400 HTTP code (Bad request) error response.
With no item with id>100 the request
http://example.com/json/articles?filter[id]=>100
gets:Would it not make sense to get a 200 HTTP response with an empty list (or null for specific-item requests) as mentioned in the JSON API specs?