Return 404 when a doc has been deleted recently instead of 500