Added content-type to error pages and directory listings, fixed HEAD on error pages