# OutOfStockException - its own ProblemDetail vs messages.properties vs messages_de.properties ## Exception's own text (what the constructor set): title="Insufficient stock" detail="Requested 3 of SKU-2 but only 0 available" ## Accept-Language: $ curl -X POST /orders -d '{"sku":"SKU-2","quantity":3,"customerEmail":"a@b.co"}' {"detail":"Only 0 unit(s) of SKU-2 are available.","instance":"/orders","status":409,"title":"Out of stock","type":"https://ankurm.com/problems/out-of-stock","sku":"SKU-2","available":0} ## Accept-Language: de $ curl -X POST /orders -d '{"sku":"SKU-2","quantity":3,"customerEmail":"a@b.co"}' -H 'Accept-Language: de' {"detail":"Von SKU-2 sind nur 0 Stück verfügbar.","instance":"/orders","status":409,"title":"Nicht vorrätig","type":"https://ankurm.com/problems/out-of-stock","sku":"SKU-2","available":0}