Removed unused code.
Returned 404 not found for items that can't be retrieved.