code: public HttpStatus getStatusCode() {
          final Object statusCode = getHeader(HttpMessageHeaders.HTTP_STATUS_CODE);
  
          if (statusCode != null) {
              if (statusCode instanceof HttpStatus) {
                  return (HttpStatus) statusCode;
              } else if (statusCode instanceof Integer) {
                  return HttpStatus.valueOf((Integer) statusCode);
              } else {
                  return HttpStatus.valueOf(Integer.valueOf(statusCode.toString()));
              }
          }
  
          return null;
      }
docs: Gets the Http response status code.
  
  @return The status code of the message