throwing a 404 error for invalid items, as we should