You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I was able to doit with response.statusCode. It gives me the code of response object.
`var req = client.post("http://XXXXXXXXXXX", args, function (data, response) {
console.log(data);
// raw response
console.log(typeof response);
console.log(response.statusCode);
/*
for(var propertyName in response) {
// you can get the value like this: myObject[propertyName]
console.log(propertyName);
}
*/
I need to get the status code in the answer. How can I retrieve this value ? (200 OK, 401...)
The text was updated successfully, but these errors were encountered: