code: public GetStatHttpCodeResponse getStatHttpCode(GetStatHttpCodeRequest request) {
          InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "httpcode");
          
          if (request.getStartTime() != null) {
              internalRequest.addParameter("startTime", DateUtils.formatAlternateIso8601Date(request.getStartTime()));
          }
          
          if (request.getEndTime() != null) {
              internalRequest.addParameter("endTime", DateUtils.formatAlternateIso8601Date(request.getEndTime()));
          }
          
          if (request.getDomain() != null) {
              internalRequest.addParameter("domain", request.getDomain());
          }
          
          if (request.getPeriod() != null) {
              internalRequest.addParameter("period", String.valueOf(request.getPeriod()));
          }
          
          if (request.isWithRegion()) {
              internalRequest.addParameter("withRegion", "");
          }
          
          return this.invokeHttpClient(internalRequest, GetStatHttpCodeResponse.class);
      }
docs: Get http code statistics with specified attributes.
  
  @param request The request containing all the options related to the statistics.
  @return Details of statistics