Affects Version/s: Master
Component/s: REST infrastructure (vulcan)
When performing a request to a Headless API without authentication (or with the wrong credentials) instead of answering with a 403/404 error, the system is answering with a 500 error code.
Steps to reproduce:
1.- perform a GET request to http://localhost:8080/o/headless-delivery/v1.0/sites/Guest/structured-contents
The same happens for other endpoints.
1.- 500 error is returned.
- Check previous behavior, not sure if we were returning an empty list, 404, or 403