Get a {@link HTTPResponse} to response to a HTTP error code if an {@link ErrorPage} for that code is present. First tries to serve it through the standard SilverStripe request method. Falls back to a static file generated when the user hit's save and publish in the CMS
Signature
public function response_for(int
$statusCode,
[string|null
$errorMessage = NULL] )
Parameters
$statusCode
—
int
$errorMessage
—
object
A developer message to put in the response on dev envs