#1 added ability to log status code to node

please push this asap
Merge pull request #2 from zmijevik/patch-1

#1 added ability to log status code to node