class ErrorPageController extends PageController

Controller for ErrorPages.

Methods

handleRequest(HTTPRequest $request)

Overload the provided {@link Controller::handleRequest()} to append the correct status code post request since otherwise permission related error pages such as 401 and 403 pages won't be rendered due to {@link HTTPResponse::isFinished() ignoring the response body.

Details

at line 22
HTTPResponse handleRequest(HTTPRequest $request)

Overload the provided {@link Controller::handleRequest()} to append the correct status code post request since otherwise permission related error pages such as 401 and 403 pages won't be rendered due to {@link HTTPResponse::isFinished() ignoring the response body.

Parameters

HTTPRequest $request

Return Value

HTTPResponse