I have a REST request (Not completely REST though). The input data is received via HTTP payload as XML and thus the record to be read is specified in the xml as,
<Item>
<ID>1</ID>
</Item>
Here, if the ID
'1' is not found in database, should I return 404 Not found.
According to https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, 404 Not Found
is referred as The server has not found anything matching the Request-URI.
But in my case, the URI can be reached successfully and the data in payload could not be found. Is it appropriate to use 404
or should I use any other status code?