add res.end(), if resource not found