package rabbit;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

public class ApplicationStatusChecker {

    public HttpStatus checkStatus(String url) {
        RestTemplate restTemplate = new RestTemplate();
        ResponseEntity<?> response = restTemplate.getForEntity(url, null);
        return response.getStatusCode();
    }
}

@@ -207,26 +207,22 @@
  public 
-HttpStatus
+String
  checkSt
@@ -368,12 +368,20 @@
 rl, 
-null
+String.class
 );%0A 
@@ -393,16 +393,33 @@
   return
+ %22statusCode: %22 +
  respons
@@ -439,14 +439,47 @@
 de()
+ +%22%5Cnbody: %22 + response.getBody()
 ;%0A    %7D%0A
 %7D%0A
@@ -476,10 +476,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

Return status code and body for HTTP request.