import boom from "@hapi/boom";

function notFoundHandler(req, res) {
  const {
    output: { statusCode, payload },
  } = boom.notFound();
  res.status(statusCode).json(payload);
}

module.exports = notFoundHandler;
