<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to get the status from scripted rest api in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-get-the-status-from-scripted-rest-api/m-p/2472908#M486095</link>
    <description>&lt;P&gt;third part tool is using Scripted rest api for creating the record in servicenow. Please let me know how to get the HTTP status&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 09:04:01 GMT</pubDate>
    <dc:creator>Santhosh23</dc:creator>
    <dc:date>2023-02-09T09:04:01Z</dc:date>
    <item>
      <title>How to get the status from scripted rest api</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-get-the-status-from-scripted-rest-api/m-p/2472908#M486095</link>
      <description>&lt;P&gt;third part tool is using Scripted rest api for creating the record in servicenow. Please let me know how to get the HTTP status&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 09:04:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-get-the-status-from-scripted-rest-api/m-p/2472908#M486095</guid>
      <dc:creator>Santhosh23</dc:creator>
      <dc:date>2023-02-09T09:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the status from scripted rest api</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-get-the-status-from-scripted-rest-api/m-p/2473325#M486132</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/225404"&gt;@Santhosh23&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In Scripted REST APIs we can set the Status code of the response to be send to the third party by using&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;response.setStatus(code);&lt;/EM&gt;&amp;nbsp;&lt;/STRONG&gt;ex. response.setStatus(200) but we cannot get any status code as it is an incoming request.&lt;/P&gt;&lt;P&gt;Please mark this comment as helpful/correct if it helps you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shubham&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 15:23:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-get-the-status-from-scripted-rest-api/m-p/2473325#M486132</guid>
      <dc:creator>Shubham_Shinde</dc:creator>
      <dc:date>2023-02-09T15:23:57Z</dc:date>
    </item>
  </channel>
</rss>

