fix connection error codes