I am working on stack trace issue in which if i have given some wrong value to parameter ex(userLocale) it will show the exception (500 port num error) and also it reveals the information about classes and programming language. which is useful to hacker to hack. I want to print the custom error messages when exception came for port num 400 404 500. I dont want to show the information related classes/programming language when above exception came so i want it to print some custom error messages so the information not seen in Stack tracing. can you please tell anyone done this on centos7/jasperserver6.4.0.