When trying to access the url of a newly created product in the catalog (not yet published), we are getting a 500 error in the application, see below image.
Shouldn't we get a 404 response instead of the 500 since the product is not yet published? How can I change that 500 response code into a 404 response code?
When trying to access the url of a newly created product in the catalog (not yet published), we are getting a 500 error in the application, see below image.
Shouldn't we get a 404 response instead of the 500 since the product is not yet published? How can I change that 500 response code into a 404 response code?