Skip to content

Commit 64fe780

Browse files
authored
GEODE-10532: Replace getRawStatusCode() with getStatusCode().value() which will be removed for Srping7. (#7967)
1 parent 9e3ab48 commit 64fe780

File tree

1 file changed

+3
-3
lines changed
  • geode-gfsh/src/main/java/org/apache/geode/management/internal/web/http/support

1 file changed

+3
-3
lines changed

geode-gfsh/src/main/java/org/apache/geode/management/internal/web/http/support/HttpRequester.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ public HttpRequester(Properties securityProperties) {
110110
public void handleError(final ClientHttpResponse response) throws IOException {
111111
String body = IOUtils.toString(response.getBody(), StandardCharsets.UTF_8);
112112
final String message = String.format("The HTTP request failed with: %1$d - %2$s.",
113-
response.getRawStatusCode(), body);
113+
response.getStatusCode().value(), body);
114114

115-
if (response.getRawStatusCode() == 401) {
115+
if (response.getStatusCode().value() == 401) {
116116
throw new AuthenticationFailedException(message);
117-
} else if (response.getRawStatusCode() == 403) {
117+
} else if (response.getStatusCode().value() == 403) {
118118
throw new NotAuthorizedException(message);
119119
} else {
120120
throw new RuntimeException(message);

0 commit comments

Comments
 (0)