Render static error pages in production

In development, render error pages dynamically