Modifications to error check the header

In case the connection fails, redirect to a new Error page. Includes the
addition of the new error.html static page.