When the front end sends a request, how can the front end determine the DNS parsing error?

when the frontend sends a request, how can the frontend judge an DNS parsing error or a connection timeout error?

Apr.01,2021

think too much. The DNS parsing process comes before the page parses. no, no, no. The front end cannot get this information.
if it is the request interface, there is no corresponding HTTP status code tag parsing error. If so, it can be judged.

Why does the front end judge this? There should be no need to deal with this situation


the front end can only handle data in the http layer

Menu