Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • These dtos are tree structures like json/xml? For each error why not simply list the path, an action object, and a human readable error. The path points out the exact point in the object which is a problem. The action object represents one or more recovery actions like: delete, or use this format string, etc... The human readable string is there to try and communicate the problem to a human, just in case the application isn't up to the task. Commented Jun 19, 2019 at 6:32
  • A better way would be not to get that far. Either don't show them or show as out of stock and not let them to be added to the cart. Commented Jun 19, 2019 at 13:53
  • @DarrenYoung The item may have become out of stock after it was added to the cart. Commented Jul 12, 2019 at 4:04