SilverStripe\ErrorPage\ErrorPageFileExtension::getErrorRecordFor
Used by {@see File::handle_shortcode}
Signature
public function getErrorRecordFor(int
$statusCode )
Parameters
$statusCode
— int- HTTP Error code
Returns
- DataObject
- Substitute object suitable for handling the given error code