Spring version: 2.3.0.RELEASE Java Version: 8

I'm trying to handle de reason of a excetopn class:

@ResponseStatus(code = HttpStatus.BAD_REQUEST, reason = "Cartão inválido")
    public class CartaoDebitoInvalidException extends RuntimeException {
}

In my service class I call the exception this way: ```java throw new CartaoDebitoInvalidException();


But the reason is noa appearing in the response: 

```json
{
    "timestamp": "2020-06-05T00:12:37.391+0000",
    "status": 404,
    "error": "Not Found",
    "message": "",
    "path": "/pagar_debito"
}

Note: It works in version 2.2.7.RELEASE

Comment From: bclozel

I believe this is working as designed. See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.3-Release-Notes#changes-to-the-default-error-pages-content