send error code on error