Unify error handling in digiroad api