{
  "synLogic": "int $ret \u003d $api();",
  "help": "The ns_url_get_http_status_code returns the response status code of the last executed request",
  "notes": "",
  "returns": " Returns the response status code of the last executed request",
  "arguments": "",
  "parameterization": "Standard parameterization is not available for this api",
  "component": [
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter return variable",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      }
    }
  ],
  "name": "ns_url_get_http_status_code",
  "syntax": "int ns_url_get_http_status_code()",
  "javaSyntax": "int ns_url_get_http_status_code()",
  "jsSyntax": "ns_url_get_http_status_code()",
  "cEx": "flow()\n{\n  int HttpRetCode;\n  ns_web_url(\"VerificationSearch\",\n    \"URL\u003dhttp:\//my_home\",\n    \"HEADER\u003dcontent-type:application/json\",\n    \"HEADER\u003dx-dep-from-app:API\"\n  );\n\n  HttpRetCode \u003d ns_url_get_http_status_code();\n\n  if (HttpRetCode \u003d\u003d 200)\n   ns_log_msg(\"The script successfully accessed the Verification page\");\n  else\n   ns_log_msg(\"The script failed to access the Verification page \");\n\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception\n  {\n    int HttpRetCode;\n    nsApi.ns_web_url(\"VerificationSearch\",\n      \"URL\u003dhttp:\//my_home\",\n      \"HEADER\u003dcontent-type:application/json\",\n      \"HEADER\u003dx-dep-from-app:API\"\n    );\n\n    HttpRetCode \u003d nsApi.ns_url_get_http_status_code();\n\n    if (HttpRetCode \u003d\u003d 200)\n     System.out.println(\"The script successfully accessed the Verification page\");\n    else\n     System.out.println(\"The script failed to access the Verification page \");\n  }\n}",
  "jsEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception\n  {\n    int HttpRetCode;\n    nsApi.ns_web_url(\"VerificationSearch\",\n      \"URL\u003dhttp:\//my_home\",\n      \"HEADER\u003dcontent-type:application/json\",\n      \"HEADER\u003dx-dep-from-app:API\"\n    );\n\n    HttpRetCode \u003d nsApi.ns_url_get_http_status_code();\n\n    if (HttpRetCode \u003d\u003d 200)\n     System.out.println(\"The script successfully accessed the Verification page\");\n    else\n     System.out.println(\"The script failed to access the Verification page \");\n  }\n}",
  "insertStrC": "ns_url_get_http_status_code();",
  "insertStrJava": "ns_url_get_http_status_code();",
  "insertStrJs": "ns_url_get_http_status_code();",
  "description": "The ns_url_get_http_status_code returns the response status code of the last executed request"
}