ensure errors are rendered with html content type