How to check with is_page if 404.php is loaded?

I think this would do :

if ( is_page( 'element1.php' ) || is_404() ) {
// do that  if page is using template page element1.php or is 404
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)