Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=ClientResponse.code for more information.
N/http Module
ClientResponse.code
Property Description:
The client HTTP response or status code.
Type:
number (read-only)
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/http Module
Parent Object:
http.ClientResponse
Sibling Object Members:
ClientResponse Object Members
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=ClientResponse.code
Example:
// Code Example 1
// Add additional code
//...
var response = http.get({
url: 'http://www.google.com'
});
log.debug({
title: 'Client Response Code',
details: response.code
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4314732346.html