Add messages to error checking.
Add error filter.
Add error filter to log exceptions.
Add the stack trace.
Use correct path for error page.
Add error log and view pages.