What should be the reponse code when validation errors happen?
Hey, I'm implementing an API. The API accepts/returns JSON content type. Now, suppose that the data submitted by some POST request is not valid, like a missing attribute, or a duplication exists for the same data. What is the standard HTML response code in that case? ...