Ismail
Ismail

Reputation: 644

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.

Upvotes: 4

Views: 2736

Answers (2)

dkamins
dkamins

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

Andrew Cooper
Andrew Cooper

Reputation: 32596

I don't think so. That's a function of DNS, not HTTP.

Upvotes: 2

Related Questions