Error Codes & Event messages
The following page describes the error & event messages that can be sent from the server to the client after each interaction with the basket.
Error codes
| Code | Description |
|---|
| ActivePromoCodeNotFound | The entered promo code can not be found |
| PromoCodeDoesntExist | Promo code is invalid |
| OrderPlacementTimeout | Timeout occurred during order placement |
| StaleBasket | The basket is stale and cannot be used anymore |
| UnavailableProduct | The product you tried to add to your basket has not been processed yet. |
Event messages
| Code | Description |
|---|
| BasketUpdated | Basket updated message sent back after each interaction with the basket. It returns a BasketModel object in it's latest state. |
| SomethingHappened | Message that is received when an error has occurred. The error codes are described in the error codes table above. |