logoalt Hacker News

Ekarostoday at 10:32 AM1 replyview on HN

No 400 is correct for bad request. As unknown query parameters is clear client error.


Replies

bartreadtoday at 11:18 AM

All 4xx errors are client errors.

400 is the general “bad request” client area, indicating something is wrong with the request but not being specific about what.

404 is simply a more specific client error: it means the client asked for a resource that couldn’t be found.