At times I return, at server level, some extra information alongside with a HTTP 404
For example, instead of returning just a 404
, which can puzzle my client whether the routing is correct or not, it will also receive something like
the identifier 'abc' is unknown
I usually set the content type to text/plain
and return some text in the Content
Another alternative is to set the ReasonPhrase
instead.
Which one is the best way / convention? Set Content
or set ReasonPhrase
?