I am validating the VAT using a constraint in the web client, in order to disallow repeated VATs in partners.
When I ask for the VAT in the website form and this VAT already exists, the constraint cause the message (which is visible in the log) but I get a 500 internal server error in the website.
How can I raise, show, popup, etc this error in the website?