StatusCodeOptions.ContentType property

Gets or sets the content type for the status code response. Default is “text/plain”.

public string? ContentType { get; set; }

See Also