Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
EPiServer.ContentDeliveryApi 1.0.1
EPiServer.ContentDeliveryApi 2.1.0
Jun 22, 2018
Oct 30, 2018
Closed, Fixed and tested
Steps to reproduce:
1. Disable SiteDefinitionApiEnabled settings in code:
var contentApiOptions = new ContentApiOptions { SiteDefinitionApiEnabled = false };
2. Send a GET request:
{{EPCMSHost}}/api/episerver/v1.0/site
Expected:
Returns error code 403 Forbidden.
Actual:
Returns error code 404 Not Found - this causes confusion that there is no site data in the CMS.
"error": { "code": "NotFound", "message": "Not Found" }