ClientResponse.code
Property Description |
The client HTTP response or status code. |
Type |
number (read-only) |
Module |
|
Since |
2015.2 |
Errors
Error Code |
Thrown If |
---|---|
|
You attempted to edit this property. This property is read-only. |
Syntax
Important:
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/https Module Script Samples.
// Add additional code
...
var response = https.get({
url: 'https://www.testwebsite.com'
});
log.debug({
title: 'Client Response Code',
details: response.code
});
...
// Add additional code