I am implementing some REST based web services - which is working wonderfully so far. I have been following the advice of Vinay Sahni (http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api).
I've realised a potential problem with the idea of using a "404" to indicate when an entity in a service is not found. This is based on the idea to Hijack the HTTP protocol's 404 error response - since it's already there and available.
In the case that there is a problem with the web service - ie. A Tomcat redeploy fails... calling a web service will result in a 404 regardless of if the entity actually exists, or the URL is actually not available.
Is it not ideal to use a 404 for this reason? I feel that someone out there has run in to the same potential problem.