Work on the error controller
fixed an issue where the status codes were not being properly sent
to the browser.
Also implemented the template page for the two error states