validationMessage

open override val validationMessage: String(source)

The validationMessage read-only property of the HTMLOutputElement interface returns a string representing a localized message that describes the validation constraints that the output control does not satisfy (if any).

MDN Reference