REST API Framework. Recommended behavior for invalid querystring parameter
问题 I am implementing a REST API Framework, and I wonder what the recommendedbehavior is, when a client submits an invalid querystring parameter. I will illustrate what I mean with a specific example: Say, I have an API handler on the /api/contacts/ endpoint, and the handler provides a querystring filter named id , which enables clients to select certain contacts with the provided IDs. So, a GET or DELETE request could be /api/contacts/?id=2&id=4&id=lalalala . Clearly, there is no such thing as a