IllegalArgumentException: Invalid character found in the request target

Hi Team

Getting below exception when trying to access “/vaadinServlet/UIDL/?v-uild=” context path, and displays “400 - Bad Request” on the front end. its security point for the application.

java.lang.IllegalArgumentException: Invalid character found in the request target [/web/vaadinServlet/UIDL/?v-uild=%3Cscript%3Ealert(1)%3C/script%3E\ ]. The valid characters are defined in RFC 7230 and RFC 3986

I’ve to display custom error page instead displaying servers information on the front end.

improperError