docs: function sendResponse(code, message, statusCode) {
      /*jshint validthis:true*/
      var res = this;
      var data;
      var result;
  
      if (!res) {
        throw new Error('You called `error()`, detatched send from the response object');
      }
  
      code = code || 'UKN';
      message = message || (errors[code] && errors[code].message) || 'Unknown error occurred';
      statusCode = statusCode || (errors[code] && errors[code].statusCode) || '200';
      data = { code: code, message: message };
  
      res.setHeader('Content-Type', 'application/json');
      //res.statusCode = statusCode;
      if (code && 'object' === typeof code) {
        if (code.error) {
          code = code.error;
        }
        if (/message/.test(JSON.stringify(code))) {
          // '{}' !== JSON.stringify(code)
          data = code;
        } else {
          data = { type: code.type, name: code.name, message: code.message || code.toString() };
        }
      }
  
      result = JSON.stringify({ error: data }, null, '  ');
      res.end(result);
    }