Format errors on HTML 500 pages better