Add 500 error page and config