Raising exception if get request was not performed successfully