WordPress 404 page returning with default in IIS7

This resolved my 404 error. I essentially went into IIS and directed the 404s to a custom URL “/index.php?error=404“

Article that explained how to resolve the error

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