Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This makes sense if your web API asserts that all responses are JSON responses, and if it provides a schema for responses somewhere as a contract.

But, in general, it's totally fine to return a 404 with no other info. That's a totally acceptable API.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: