I am trying to get Apache HttpClient to fire an HTTP request, and then display the HTTP response code (200, 404, 500, etc.) as well as the HTTP response body (text string).
If you are using Spring
return new ResponseEntity("your response", HttpStatus.ACCEPTED);