`actions.collectionNotFound(req, res, collection, headers)`
The function generates an error response.