400 BAD request HTTP error code meaning? - Stack Overflow A 400 means that the request was malformed In other words, the data stream sent by the client to the server didn't follow the rules In the case of a REST API with a JSON payload, 400's are typically, and correctly I would say, used to indicate that the JSON is invalid in some way according to the API specification for the service By that logic, both the scenarios you provided should be 400s
400 vs 422 response to POST of data - Stack Overflow Situations of 400 over 422: Remember, the response code 422 is an extended HTTP (WebDAV) status code There are still some HTTP clients front-end libraries that aren't prepared to handle 422 For them, its as simple as "HTTP 422 is wrong, because it's not HTTP" From the service perspective, 400 isn't quite specific
How do I fix a 400 Bad Request error in . Net Core POST operation? You'll need to complete a few actions and gain 15 reputation points before being able to upvote Upvoting indicates when questions and answers are useful What's reputation and how do I get it? Instead, you can save this post to reference later
Postman getting response 400 Bad Request - Stack Overflow I'm trying to access an API using Postman to get a response using basic authentication, but when I submit the data, it gives me the dreaded 400 error, which apparently indicates that some headers a