By default CakePHP will use the default.ctp layout to display any error messages. In some cases this may not be desirable as your default.ctp might contain navigational and design elements, CSS and JS files, which really take away from the way the error message is displayed. Usually an error message should be displayed in a clean and simple layout that only focuses on the error itself. Thankfully,