| 1 | <?php |
||
| 13 | class ErrorPageController extends PageController |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Overload the provided {@link Controller::handleRequest()} to append the |
||
| 18 | * correct status code post request since otherwise permission related error |
||
| 19 | * pages such as 401 and 403 pages won't be rendered due to |
||
| 20 | * {@link HTTPResponse::isFinished() ignoring the response body. |
||
| 21 | * |
||
| 22 | * @param HTTPRequest $request |
||
| 23 | * @param DataModel $model |
||
| 24 | * @return HTTPResponse |
||
| 25 | */ |
||
| 26 | public function handleRequest(HTTPRequest $request, DataModel $model = null) |
||
| 32 | } |
||
| 33 |