Added error refactor

All the error have a constant value stored in tools.Consts and they all
are thrown in the services never in the controllers