Enonic version: 7.11.1
OS: Linux
I need to throw http 404 Not Found or 500 with some text message.
But I don’t know how to do that and I didn’t find it in docs.
I need to throw http 404 Not Found or 500 with some text message.
But I don’t know how to do that and I didn’t find it in docs.
Hi. Just set the desired response code in you controller: HTTP request and response - Enonic Developer Portal
By default, it will use 200