According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, we should return HTTP 400 for malformed syntax instead of HTTP 404.