Menu
Feedback
Known issues
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

  1. Ensure a product exists in VTEX.
  2. Set the product's inventory to zero.
  3. Set the Show when out of stock flag to false.
  4. Try accessing the product’s PDP URL.
  5. Observe that the request returns a 200 OK status and redirects to a page with ProductLinkNotFound in the URL.

Workaround

N/A

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback