Product with 'Show When Out of Stock' set as false returns 200 instead of 404
Store Framework
•
ID: 1233974
Backlog
Published on10/16/2025
 • 
Last updated on10/16/2025
1 min read
Summary
When a product exists in the catalog but is out of stock and has the Show when out of stock flag set to false, accessing its URL returns a 200 OK status code and redirects to a URL containing the ProductLinkNotFound parameter. The correct behavior should be to return a 404 Not Found response immediately.
Simulation
- Ensure a product exists in VTEX.
- Set the product's inventory to zero.
- Set the Show when out of stockflag tofalse.
- Try accessing the product’s PDP URL.
- Observe that the request returns a 200 OKstatus and redirects to a page withProductLinkNotFoundin the URL.
Workaround
N/A