Added proper not found error for get and delete requests