Declare $method as public in HTTPErrorController.