code: function(err) {
  
          var message = 'Error occured while performing a JSON-WSP request. ' +
              err.message + '\n' +
              JSON.stringify({
                  options : curOpts
              }, null, '  ').yellow;
  
          logger.error(message);
      }
docs: Default error handler