Handle error from server.