Add error pages and routes