Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

http response - domain does not exist?

Tags:

http

response

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.

like image 441
Ismail Avatar asked Aug 30 '25 17:08

Ismail


2 Answers

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.

like image 71
dkamins Avatar answered Sep 03 '25 02:09

dkamins


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

like image 30
Andrew Cooper Avatar answered Sep 03 '25 00:09

Andrew Cooper