Added Content-Type to errors and directory listings, fixed HEAD error pages