send error code