http response - domain does not exist?
Is there any http header response code for domain name does not exist? similar to 404 not found?
Just wondering if it is possible or any other better suggestions to achieve this would be helpful开发者_Go百科.
If the domain does not exist, then the HTTP client will not be able to connect to any HTTP server, and thus you will not get any HTTP response at all, because the lower layer protocols cannot connect to provide the conduit for the higher level HTTP connection.
I don't think so. That's a function of DNS, not HTTP.
精彩评论