Stream: implementers
Topic: Invalid parameter format
David Hay (Jun 08 2020 at 07:36):
Suppose that a server is implementing a query on identifier, and the identifier has a specific format (say 2 numbers followed by 3 alpha codes - eg 12ABC). If a client makes a query with an identifier that doesn't match that format, should the response code be an error (4xx) as the identifier format is wrong or 200, as the search format was correct - just that the identifier was malstructured. In either case an OO can give the details of the issue... This section seems to imply a 403, but that doesn't seem quite right...
Michele Mottini (Jun 08 2020 at 13:11):
I think it should be a 200. If you really want to return an error then 422: client is violating server-specific rules
Last updated: Apr 12 2022 at 19:14 UTC