Changed error code

Fixed wrong error code for NetConnection security errors.