send error codes