If functionality wasn't specified, then it's not a defect, it's working as expected.
- If the credit card transaction fails, do not ship the product to the customer, and notify the customer of the failure.
- Don't let the customer order more items than are available in our inventory, or zero items, or a negative or non-integer number of items.
- A web-based system should correctly handle multiple concurrent transactions.
- If something goes wrong, show the user a meaningful error message in their selected language, not a Python stack trace.
If my excuse for my code not doing this was "it wasn't in the spec", I'd expect people to ridicule me.
Or, take programming languages - is the null pointer "working as expected", or is it a "billion dollar mistake"?