You need to modify the error.tpl file in template folder for modifying the design