mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
ddc2e3822b
Previously by setting the response status code inside the action, this prevented response bodies from being included due to 403/401 being matched by SS_HTTPResponse::isFinished() (which stops popular I assume SS_HTTPResponse::isFinished() is valid for the permission error use case (and I would be hesitant to change it) so this simply moves the declaration of the response status code till after the parent has populated the body of the response.
11 lines
291 B
YAML
11 lines
291 B
YAML
ErrorPage:
|
|
404:
|
|
Title: Page Not Found
|
|
URLSegment: page-not-found
|
|
Content: My error page body
|
|
ErrorCode: 404
|
|
403:
|
|
Title: Permission Failure
|
|
URLSegment: permission-denied
|
|
Content: You do not have permission to view this page
|
|
ErrorCode: 403 |