fix content type of error messages