title: ASP.NET Core Web API - Return a string message with a NoContent Response?
body: <p>I have some records in the database that may or may not have some information for a certain column, and that's OK.</p>
  <p>If a consumer of the endpoint runs into one of these records, I'd like to return &quot;NoContent&quot;, because, well, there's No Content for that record that we can execute on.  BUT ... I'd like to give them a message why, as there are two distinct reasons.</p>
  <p>When looking at other status codes, this works:</p>
  <pre><code>return Accepted(&quot;I SEE THIS STRING!&quot;);
  </code></pre>
  <p>It actually shows up in the Response Header as the field location (I think, don't make me run this project again!)</p>
  <p>This works for say Internal Server error:</p>
  <pre><code>return StatusCode(500, &quot;I SEE THIS TOO!&quot;);
  </code></pre>
  <p>But, for NoContent there is no constructor like Accepted, where you can pass an object.  Also, this shows me no string whatsoever:</p>
  <pre><code>return StatusCode(204, &quot;WHY CAN'T I SEE THIS STRING?!&quot;);
  </code></pre>
  <p>Help!</p>