Added many individual return codes, ensured that not domain name server is needed for "localhost" or "127.0.0.1"