code: function sendError(error, params) {
      checkParams(params);
      
      params.status = FILE_NOT_FOUND;
      
      const data = error.message || String(error);
      
      logError(error.stack);
      
      send(data, params);
  }
docs: send error response