设置返回状态（返回码，描述）
@param iReturnCode IReturnCode
@return ResultResponseUtil
494287
public ResultResponseUtil status(IReturnCode iReturnCode) {
        this.setCode(iReturnCode.getCode());
        this.setMsg(iReturnCode.getMsg());
        return this;
    }
512696
public static DnsResponseCode valueOf(int responseCode) {
        switch (responseCode) {
        case 0:
            return NOERROR;
        case 1:
            return FORMERR;
        case 2:
            return SERVFAIL;
        case 3:
            return NXDOMAIN;
        case 4:
            return NOTIMP;
        case 5:
            return REFUSED;
        case 6:
            return YXDOMAIN;
        case 7:
            return YXRRSET;
        case 8:
            return NXRRSET;
        case 9:
            return NOTAUTH;
        case 10:
            return NOTZONE;
        case 16:
            return BADVERS_OR_BADSIG;
        case 17:
            return BADKEY;
        case 18:
            return BADTIME;
        case 19:
            return BADMODE;
        case 20:
            return BADNAME;
        case 21:
            return BADALG;
        default:
            return new DnsResponseCode(responseCode);
        }
    }
545761
public String fetch(String code) {
        String url = WxEndpoint.get("url.template.get");
        String json = String.format("{\"template_id_short\":\"%s\"}", code);

        logger.debug("template message, get template id: {}", json);
        String response = wxClient.post(url, json);
        Map<String, Object> result = JsonMapper.defaultMapper().json2Map(response);

        if(result.containsKey("template_id")) {
            return result.get("template_id").toString();
        } else {
            throw new WxRuntimeException(999, "fetch template id failed.");
        }
    }
68461
@SuppressWarnings({"ThrowableInstanceNeverThrown"})
    public static HttpResponseException error(int code, String errorMessage) {
        return error(code,new Exception(errorMessage));
    }
42359
@Override
    public void visitCode(Code obj) {
        try {
            lnTable = obj.getLineNumberTable();
            if (lnTable != null) {
                state = State.SEEN_NOTHING;
                invokePC = -1;
                returnType = null;
                super.visitCode(obj);
            }
        } finally {
            lnTable = null;
        }
    }
1087530
public void updateResponseCode(int id, String responseCode) {
        PreparedStatement statement = null;
        try (Connection sqlConnection = sqlService.getConnection()) {

            String queryString = "UPDATE " + Constants.DB_TABLE_ENABLED_OVERRIDE +
                    " SET " + Constants.ENABLED_OVERRIDES_RESPONSE_CODE + "= ? " +
                    " WHERE " + Constants.GENERIC_ID + " = ?";
            statement = sqlConnection.prepareStatement(queryString);
            statement.setString(1, responseCode);
            statement.setInt(2, id);
            statement.executeUpdate();
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            try {
                if (statement != null) {
                    statement.close();
                }
            } catch (Exception e) {
            }
        }
    }
667390
private String token(final String code) throws IOException {
        return new JdkRequest(
            new Href(this.gauth).path("o").path("oauth2").path("token")
                .toString()
        ).body()
            .formParam("client_id", this.app)
            .formParam("redirect_uri", this.redir)
            .formParam("client_secret", this.key)
            .formParam("grant_type", "authorization_code")
            .formParam(PsGoogle.CODE, code)
            .back()
            .header("Content-Type", "application/x-www-form-urlencoded")
            .method(com.jcabi.http.Request.POST)
            .fetch().as(RestResponse.class)
            .assertStatus(HttpURLConnection.HTTP_OK)
            .as(JsonResponse.class).json()
            .readObject()
            .getString(PsGoogle.ACCESS_TOKEN);
    }
476238
protected APIParameter parseCustomizedReturn(MethodDoc methodDoc) {
		Tag[] tags = methodDoc.tags(WRReturnTaglet.NAME);
		APIParameter result = null;
		if (tags.length > 0) {
			result = WRReturnTaglet.parse(tags[0].text());
		}
		return result;
	}
660885
public static HttpResponseStatus valueOf(int code) {
        HttpResponseStatus status = valueOf0(code);
        return status != null ? status : new HttpResponseStatus(code);
    }
393828
public static String getTypeCodeSignature(int typeCode) {
        String signature = Values.PRIMITIVE_TYPE_CODE_SIGS.get((byte) typeCode);
        return signature == null ? Values.SIG_JAVA_LANG_OBJECT : signature;
    }
318484
private void processIntegerReturn() {
        if ((sawConstant == null) && (stack.getStackDepth() == 0)) {
            throw new StopOpcodeParsingException();
        }

        Integer returnValue = null;
        if (sawConstant == null) {
            OpcodeStack.Item item = stack.getStackItem(0);
            returnValue = (Integer) item.getConstant();
        } else {
            returnValue = sawConstant;
        }

        if (returnValue == null) {
            throw new StopOpcodeParsingException();
        }
        int v = returnValue.intValue();
        if (v < 0) {
            seenNegative = true;
            if (getPC() > furthestBranchTarget) {
                seenUnconditionalNonZero = true;
            }
        } else if (v > 0) {
            seenPositive = true;
            if (getPC() > furthestBranchTarget) {
                seenUnconditionalNonZero = true;
            }
        } else {
            seenZero = true;
        }

        sawConstant = null;
    }
193458
public OauthGetTokenResponse getToken(String code) {
        BeanUtil.requireNonNull(code, "code is null");
        OauthGetTokenResponse response = null;
        String url = BASE_API_URL + "sns/oauth2/access_token?appid=" + this.config.getAppid() + "&secret=" + this.config.getSecret() + "&code=" + code + "&grant_type=authorization_code";
        BaseResponse r = executeGet(url);
        String resultJson = isSuccess(r.getErrcode()) ? r.getErrmsg() : r.toJsonString();
        response = JSONUtil.toBean(resultJson, OauthGetTokenResponse.class);
        return response;
    }
167717
public static void wapPay(HttpServletResponse response, AlipayTradeWapPayModel model, String returnUrl,
			String notifyUrl) throws AlipayApiException, IOException {
		String form = wapPayStr(response, model, returnUrl, notifyUrl);
		HttpServletResponse httpResponse = response;
		httpResponse.setContentType("text/html;charset=" + AliPayApiConfigKit.getAliPayApiConfig().getCharset());
		httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
		httpResponse.getWriter().flush();
	}
839684
int getResponseCodeFromBundle(@NotNull Bundle b) {
        Object o = b.get(RESPONSE_CODE);
        if (o == null) {
            Logger.d("Bundle with null response code, assuming OK (known issue)");
            return BILLING_RESPONSE_RESULT_OK;
        } else if (o instanceof Integer) return ((Integer) o).intValue();
        else if (o instanceof Long) return (int) ((Long) o).longValue();
        else {
            Logger.e("In-app billing error: ", "Unexpected type for bundle response code.");
            Logger.e("In-app billing error: ", o.getClass().getName());
            throw new RuntimeException("Unexpected type for bundle response code: " + o.getClass().getName());
        }
    }
617048
public static JSONObject processResponse(int responseCode, String errorCode, String errorMsg) throws JSONException {
        JSONObject response = new JSONObject();
        response.put("responseCode", responseCode);
        response.put("errorCode", errorCode);
        response.put("errorMsg", errorMsg);

        return response;
    }
50794
public void setReturnObject(PrintWriter out, Object objReturn)
    {
        String strReturn = null;
        if (objReturn instanceof Map)
        {
            Map<String, Object> map = (Map)objReturn;

            JSONObject jsonObj = AjaxProxyTask.mapToJsonObject(map);

            strReturn = AjaxProxyTask.jsonObjectToReturnString(jsonObj);
        }
        else if (objReturn instanceof BaseMessage)
        {
            BaseMessage message = (BaseMessage)objReturn;
            String strMessage = (String)message.get("message");
            BaseMessageHeader messageHeader = message.getMessageHeader();
            String strQueueName = messageHeader.getQueueName();
            String strQueueType = messageHeader.getQueueType();
            Integer intRegID = messageHeader.getRegistryIDMatch();
            JSONObject jsonObj = new JSONObject();
            
            try {
                jsonObj.put("message", strMessage);
                jsonObj.put(MessageConstants.QUEUE_NAME, strQueueName);
                jsonObj.put(MessageConstants.QUEUE_TYPE, strQueueType);
                if (intRegID != null)
                    jsonObj.put("id", intRegID.toString());
            } catch (JSONException e) {
                e.printStackTrace();
            }

            strReturn = AjaxProxyTask.jsonObjectToReturnString(jsonObj);
        }
        else if (objReturn instanceof BaseMessageFilter)
        {
            Integer intFilterID = ((BaseMessageFilter)objReturn).getFilterID();
            if (intFilterID != null)  // If registry ID is null.
                strReturn = intFilterID.toString();
            Integer intRegistryFilterID = ((BaseMessageFilter)objReturn).getRegistryID();
            if (intRegistryFilterID != null)  // Always
                strReturn = intRegistryFilterID.toString();
        }
        else if (objReturn instanceof RemoteException)
        {
            try {
                this.setErrorReturn(out, (RemoteException)objReturn);
                return;
            } catch (RemoteException ex) {
                // Never
            }
        }
        else
        {
//?        String strReturn = org.jbundle.thin.base.remote.proxy.transport.BaseTransport.convertObjectToString(objReturn);
//?        strReturn = org.jbundle.thin.base.remote.proxy.transport.Base64Encoder.encode(strReturn);
            if (objReturn != null)
                strReturn = objReturn.toString();
        }
        this.setReturnString(out, strReturn);
    }
498422
public HttpClientResponseBuilder doReturn(String response, Charset charset) {
        newRule.addAction(new StringResponse(response, charset));
        return new HttpClientResponseBuilder(newRule);
    }