type the error message you wish to display, highlight it, then open the Server Behaviors Panel. Click the plus button and select WebAssist -> Server validation -> Validation Show If.
in the validation show if behavior, select the validation that should trigger the error to display.