the w3c's documentation http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html told me that if the request has "malformed syntax", use 400, but what is malformed syntax? If I am POSTing an empty content to a URI like http://example.com/articles/, which is not allowed, is this request a malformed syntax, can I use 400 bad request in this situation?
I think I didn't describe the question well, I am sorry, what actually I want to ask is whether I can send a 400 code when client sent(POST or PUT) some invalid parameters which can't fulfilled my application needs, for example, a registration with an invalid email.
I think I didn't describe the question well, I am sorry, what actually I want to ask is whether I can send a 400 code when client sent(POST or PUT) some invalid parameters which can't fulfilled my application needs, for example, a registration with an invalid email.