When should I use HTTP 404?

You use 404 if the resource is not found, not when there’s no entity. Put it in another way, if you want to return 404 for your objects, then give them their own URIs.

For More Information Please Refer: https://softwareengineering.stackexchange.com/questions/203492/when-to-use-http-status-code-404-in-an-api