Refactor callback hell

I think that would be better if we send back the real error status code that comes from UAA