class ErrorPage extends Page (View source)

ErrorPage holds the content for the page of an error response.

Renders the page on each publish action into a static HTML file within the assets directory, after the naming convention /assets/error-.html. This enables us to show errors even if PHP experiences a recoverable error. ErrorPages

Constants

HTTP_RESPONSE_CODE_400

HTTP_RESPONSE_CODE_401

HTTP_RESPONSE_CODE_403

HTTP_RESPONSE_CODE_404

HTTP_RESPONSE_CODE_405

HTTP_RESPONSE_CODE_406

HTTP_RESPONSE_CODE_407

HTTP_RESPONSE_CODE_408

HTTP_RESPONSE_CODE_409

HTTP_RESPONSE_CODE_410

HTTP_RESPONSE_CODE_411

HTTP_RESPONSE_CODE_412

HTTP_RESPONSE_CODE_413

HTTP_RESPONSE_CODE_414

HTTP_RESPONSE_CODE_415

HTTP_RESPONSE_CODE_416

HTTP_RESPONSE_CODE_417

HTTP_RESPONSE_CODE_422

HTTP_RESPONSE_CODE_429

HTTP_RESPONSE_CODE_500

HTTP_RESPONSE_CODE_501

HTTP_RESPONSE_CODE_502

HTTP_RESPONSE_CODE_503

HTTP_RESPONSE_CODE_504

HTTP_RESPONSE_CODE_505

Methods

bool
defaultRecordsAllowed()

No description

getCMSFields()

No description

static mixed
response_for($statusCode) deprecated

No description

static mixed
get_content_for_errorcode($statusCode) deprecated

No description

Details

bool defaultRecordsAllowed()

Return Value

bool

See also

ErrorPageExtension::defaultRecordsAllowed

FieldList getCMSFields()

Return Value

FieldList

static mixed response_for($statusCode) deprecated

deprecated use ErrorPage::singleton()->responseFor

Parameters

$statusCode

Return Value

mixed

static mixed get_content_for_errorcode($statusCode) deprecated

deprecated use ErrorPage::singleton()->getContentForErrorcode

Parameters

$statusCode

Return Value

mixed