JARVIS-414 refactored exceptions for mongo and auth