Proper reaction on errors on client side