changed to use sails.js custom responses