Since they are in sharepoint hive, you have to go to the web.config file in the Sharepoint root folder -> template-> layouts folder. set customerros mode=”off”
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career