title: Spring Boot @ResponseStatus not returning HTTP message
body: <p>I've a problem returning HTTP Messages when an exception is thrown. I'm using @ResponseStatus annotation to handle the HTTP Status code, it shows ok but the message is ignored.</p>
  <p>Custom Exception:</p>
  <pre><code>@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR, reason = &quot;An error ocurred while trying to 
  retrieve the instruments.&quot;)
  public class InstrumentsNotFoundException extends RuntimeException { 
  
  private static final Logger logger = LoggerFactory.getLogger(InstrumentsNotFoundException.class);
  
  public InstrumentsNotFoundException(String errorMessage) {
      super(errorMessage);
      logger.error(errorMessage);
  }
  </code></pre>
  <p>Controller:</p>
  <pre><code>@GetMapping({ &quot;/portfolio/&quot; })
  public List&lt;Instrument&gt; getAll() {
      try {
          List&lt;Instrument&gt; instruments= portfolioYieldProcessor.getPortfolio();
          return instruments;
      } catch(RuntimeException e) {
          throw new ResponseStatusException(
                    HttpStatus.INTERNAL_SERVER_ERROR, &quot;Sorry, an error occurred, please try again later.&quot;, e);
      }   
  }
  </code></pre>
  <p>HttpMessage</p>
  <p><a href="https://i.stack.imgur.com/6rp06.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6rp06.png" alt="Http Response" /></a></p>