I think the HtmlMediaTypeViewformatter should not try to serialize the HttpError type and leave it to other formatters (maybe the default ones) to deal with this.
Another option would be to provide an 'out-of-the-box' view for HttpError, which would display nicely the errors in the same fashion the MVC projects.
This is to avoid creating a boilerplate HttpError view for every project suing the html formatter. I can work on this, but I'd like to hear your input first before getting started.
Thanks!
I think the
HtmlMediaTypeViewformattershould not try to serialize theHttpErrortype and leave it to other formatters (maybe the default ones) to deal with this.Another option would be to provide an 'out-of-the-box' view for HttpError, which would display nicely the errors in the same fashion the MVC projects.
This is to avoid creating a boilerplate HttpError view for every project suing the html formatter. I can work on this, but I'd like to hear your input first before getting started.
Thanks!