Skip to content

Plugtest 2021: Spec discussion : Validity of returning a list with empty parameters rather than code 404

In many instances, when querying about an endpoint.. for example: query/users, or query/zones

If no users are found, should the error be a NOT FOUND 404, or should it be a userList populating the resourceURL but having no array of users and returning a code 200 (success). Our implementation is of the later because the request was successful on the queried endpoint, but the list is empty. This issue is just to track a discussion on how to handle this situation.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information