When designing a REST API, is it common practice to include endpoints that allow you to see if potential resources exists in the database or not (before you eventually fetch them)?
For instance, if I want to request product data using a fetch, should I check to see if the potential resource even exists in the database before fetching it, or should I just let the fetch API catch the error that a non-existent resource would produce?
Is it even common to create endpoints that can be used to tell you if a resource exists in the database or not, or should this all be done through error handling on the proposed fetch itself?