Add exception handler during server return error.