Move error handling up

Main app must decide what to do with wrong response