replace error.html with 404.html, add 500.html

output error traceback