title: Return Json on a bad request
body: <p>So OK(value) returns formatted json with an application/json header. However the BadRequest() does not. If the request is a application/json shouldn't the response be like that even if it's a bad request?</p>
  <pre class="lang-cs prettyprint-override"><code>[HttpPost]
  public IActionResult Post([FromBody]Resolution value)
  {
      using (_ctx)
      {
          try
          {
              if (ValidateResolution(value.Size))
              {
                  _ctx.Resolution.Add(value);
                  _ctx.SaveChanges();
                  return Ok(value);
              }
              return BadRequest(&quot;{ \&quot;message\&quot;: \&quot;hello\&quot; }&quot;);
          } catch (Exception) {
              return BadRequest();
          }
      }
  }
  </code></pre>