Reputation: 644
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.
Upvotes: 4
Views: 2736
Reputation: 21938
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.
Upvotes: 7