transitive-bullshit / check-links

Robustly checks an array of URLs for liveness. Extremely fast ⚡
MIT License
334 stars 10 forks source link

statusCode: undefined #2

Closed l2aelba closed 6 years ago

l2aelba commented 6 years ago

Im not sure, but I got statusCode: undefined when the domain is not alive

{ status: 'dead', statusCode: undefined }

or this is should be undefined as they are?

transitive-bullshit commented 6 years ago

We will only have a statusCode if got returns an error that contains a statusCode. There will be some cases where the specific statusCode isn't available because the network or DNS failed to connect.

l2aelba commented 6 years ago

Aha! I forgot to think about this! @transitive-bullshit

Closed.