When No Product Data Exists a 500 Error is Erroneously Returned Rather Than the Expected 404 (Doc ID 2105217.1)

Last updated on FEBRUARY 10, 2016

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

When you go to a link for a product that does not exist, rather than return the expected 404 error, a 500 error is returned.

This prevents the site from serving an informative 404 page and in one case all that was presented was a gray screen.

Checking the logs the following is seen:

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms