Fix content type for 500 errors