Use sails.util instead of lodash incase it's not globalize, and make sure an object comes down when the error responses send JSON.