Hacker News new | past | comments | ask | show | jobs | submit login

418 is really a confusing response here. They should fix that ASAP by giving a normal error message.



I would recommend (if any NPM people are reading this) that the error for an unknown Host header be changed to 404. Bad host headers are already filtered out by Cloudflare (which returns 400), so any host headers that make it through would represent "unknown"/"missing" hosts (hence 404).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: