title: Netsuite equivalent for php `fastcgi_finish_request();`
body: <p>I can't find any equivalent in Netsuite for <code>fastcgi_finish_request();</code>. I want to reply with code 200 right away to a 3rd party server call, but the suitelet/restlet should continue the execution.</p>
  <p><em><strong>the logic</strong></em></p>
  <pre><code>/**
   * @NApiVersion 2.1
   * @NScriptType Suitelet
   */
  define([],
  
      () =&gt; {
          /**
           * Defines the Suitelet script trigger point.
           * @param {Object} scriptContext
           * @param {ServerRequest} scriptContext.request - Incoming request
           * @param {ServerResponse} scriptContext.response - Suitelet response
           * @since 2015.2
           */
          const onRequest = (scriptContext) =&gt; {
  
              /**
               * set response code 200 and return the response
               * the equivalent of `fastcgi_finish_request` &amp;  `session_write_close()` to close the session.
               * the 3rd party server should receive the response, but the NS script should continue
               */
  
              log.debug(&quot;code executed after 3rd party server received the suitelet response&quot;);
          }
  
          return { onRequest }
  
      });
  </code></pre>
  <p><em><strong>Any Thoughts?</strong></em></p>
  <p><code>thx</code></p>