ShiftWise API Docs
    Preparing search index...

    Function NotFound

    • Creates a 404 Not Found error. Use when a requested resource does not exist.

      Parameters

      • msg: string = "Not found"

        Error message (default: "Not found")

      Returns AppError

      AppError with status 404 and code NOT_FOUND

      if (!schedule) return next(NotFound('Schedule not found'))