I am looking for a correct status code to send for a gneral failure through an api.
The exact scenario is failing to add an product to a shopping cart.
The failure could happen for a large number of reasons, but i would like to return a single http code.
Which would be best?
I have been looking through them and cant see anything that exactly fits the needs here.
Some of the possible failure conditions could be:
Not enough stock to satisfy
Stock limit reached for that particular product
Product no longer available