SilverStripe\Admin\LeftAndMain::jsonError
Return an error HTTPResponse encoded as json
Signature
public function jsonError(int
$errorCode,
[string
$errorMessage = NULL] )
Parameters
$errorCode
— int$errorMessage
— string
Returns
- HTTPResponse