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

> What is the client supposed to do about it?

Um...send a proper request? This seems like a perfectly fine code to me. Suppose you have an HTTP request that takes two parameters and the client only sends one of them. Which of the other existing 4xx codes would be appropriate for that situation? "400 Bad Request" is probably what you'd use currently, but as defined it indicates a syntactic error with the request rather than a semantic one.



Presumably the client either does or does not know how to send a proper request so if it is receiving the error message it might as well behave the same way as any other 4xx code.


Yes but presumably the message will point to the API documentation page that explains this. It is a case of lost updates or this error.


Indeed. But, again, we could already do that without the 428 code. And so the situation is: response code 428 tells the client nothing beyond the info gotten from any 4xx response code. The response body tells a human something. The addition of the new response code helps neither one.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: