I use React-Hydrogen. The cart it fetches and exposes via the useCart hook doesn't contain the available quantity for the variants of a product. When I try to update the line item via
linesUpdate with an invalid quantity, it just returns a 200 response with the maximum available quantity applied (for example, if I try to set the quantity of a product to 3, but only 2 are available, it returns the new cart with a quantity of 2 applied).
How can I show some kind of error message in my app saying that the requested quantity isn't available, by using the data present in the cart?