Skip to content

Commit

Permalink
Fix for status code check in 4xx list
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesh-ap committed Dec 16, 2024
1 parent 413c6b7 commit 49e7ece
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public void tryToEstablishApplicationEndpoint(HttpRequest request) {
try {
ReadResult result = httpClient.execute(request, endpoint.getValue(), null, true);
int statusCode = result.getStatusCode();
if ((statusCode >= 200 && statusCode < 300) || (statusCode >= 400 && statusCode < 500)) {
if ((statusCode >= 200 && statusCode < 300) ||
statusCode == 401 || statusCode == 402 ||
statusCode == 406 || statusCode == 409) {
ServerConnectionConfiguration serverConnectionConfiguration = new ServerConnectionConfiguration(serverPort, endpoint.getKey(), endpoint.getValue(), true);
AppServerInfo appServerInfo = AppServerInfoHelper.getAppServerInfo();
appServerInfo.getConnectionConfiguration().put(serverPort, serverConnectionConfiguration);
Expand Down

0 comments on commit 49e7ece

Please sign in to comment.