ShiftWise API Docs
    Preparing search index...

    Function Conflict

    • Creates a 409 Conflict error. Use when a resource already exists or a unique constraint would be violated.

      Parameters

      • msg: string = "Conflict"

        Error message (default: "Conflict")

      Returns AppError

      AppError with status 409 and code CONFLICT

      if (existing) return next(Conflict('Email already in use'))