Empty collections in the API return an Error message to the user
If you attempt to access an valid API endpoint for a collection (e.g. api/providers or products) and the collection is empty, the user is presented with an error message seen below. This is the same error message shown if a user attempts to access an non-existent entity (e.g. api/foo/bar). SInce this is a collection in the API, the user should be presented with an empty list and not an error.
displayMessage: "Resource not found on the server",
Created: ehelms on June 17, 2013 15:46 +00:00
Imported from https://api.github.com/repos/Katello/katello/issues/2505