/api/v0/dns/ returns HTTP 500 instead of 404 when dnslink is not found #2286
Labels
exp/novice
Someone with a little familiarity can pick up
help wanted
Seeking public contribution on this issue
Milestone
This is a cosmetic issue. 💐
I implemented PoC for ipfs/ipfs-companion#44 and noticed that lookups for FQDNs without
dnslink
produce HTTP 500:After
ipfs log level namesys debug
I see:It is easy to reproduce via curl:
My problem: broken semantics. There was no Internal Server Error. Everything worked as expected. 👌
DNS Lookup that does not find
dnslink
should return a code in lower range, probably the best one being HTTP 404 (Not Found) or 400 (Bad Request).A similar issue: #1047
The text was updated successfully, but these errors were encountered: