title: How to add message to response with exception
body: <p>I use next: java11 + spring-boot:2.4.3.</p>
  <p>I have next method in controller:</p>
  <pre><code>@PutMapping(&quot;/{id}&quot;)
  @ResponseBody
  public void update(@PathVariable(&quot;id&quot;) long id, @RequestBody OrderDto orderDto) {
      try {
          myService.update(id, orderDto);
      } catch (OrderMovementException e) {
          throw new ResponseStatusException(HttpStatus.BAD_REQUEST, e.getLocalizedMessage(), e);
      }
  }
  </code></pre>
  <p>Well, it works fine for tests or logging, I see status and message.</p>
  <p>But my front-end colleague  receive next, where message is empty:</p>
  <pre><code>{&quot;timestamp&quot;:&quot;2022-01-24T11:20:48.726+00:00&quot;,&quot;status&quot;:400,&quot;error&quot;:&quot;Bad Request&quot;,&quot;message&quot;:&quot;&quot;,&quot;path&quot;:&quot;/service/api/orders/12345&quot;}
  </code></pre>
  <p>what I need to change to fix this problem?
  Thanks in advance.</p>