Rest service returns 404
问题 What is the best practice in return codes if a call to a rest service executes a database query, no results are found and it returns. Should this be a 404 or a 200 with a message stating no records? The URL has resolved correctly and no server error has occurred just that there are no records returned. EDIT: Example url is: http://localhost/app/pr_xyz/1234 Used to retrieve a list of xyz that belong to the existing user 1234. The user id 1234 has already been retrieved and is known to exist in