function notFoundError(res, errorResponse: { title: string; error?: string; } ): void {
  res.status(404).json(errorResponse);
}