Simple auth test:

@Test
public void test() {
    final ResponseEntity<String> entity = restTemplate.getForEntity(
        "http://localhost:" + port + "/application/default", String.class);
    then(entity.getStatusCode()).isEqualTo(HttpStatus.UNAUTHORIZED);
    then(entity.getBody()).contains("\"status\":401,\"error\":\"Unauthorized\",\"message\":\"Unauthorized\",\"path\":\"/application/default\"");
}

It's successful on v2.2.7.RELEASE.

But it fails on 2.3.0.RELEASE, because message is empty:

Expecting:
 <"{"timestamp":"2020-05-22T12:59:46.967+00:00","status":401,"error":"Unauthorized","message":"","path":"/application/default"}">
to contain:
 <""status":401,"error":"Unauthorized","message":"Unauthorized","path":"/application/default"">

I checked it in different cases. It looks like 2.3.0.RELEASE dependencies are missing error messages everywhere.

Comment From: scottfrederick

This is intentional to reduce the chance of information leakage. Please see the relevant section of the release notes for details.

Duplicate of #21469