NXP-15420: refine error management, when dev mode is not set, a FileNotFoundException can be caught, and it should not trigger an error page