Hi,
I use only SilverStripe Framework (3.1.5) and I have problem with handling error page.
In CMS we have page type "ErrorPage". We set error code and content - OK.
But how build error page in framework controller?
1) When page not found SilverStripe returns 200 code.
[response:protected] => SS_HTTPResponse Object
(
[statusCode:protected] => 200
[statusDescription:protected] => OK
[headers:protected] => Array
(
[Content-Type] => text/html; charset=utf-8
)
[body:protected] =>
)
But in GoogleChrome inspector is 404
2) How set custom error page template? I use nginx and set error page - but when page is not found, only I can se is empty - white screen.
best regards