return error code when connection issue