Skip to content

Kirby 6.0.0

DialogResponse::error()

Renders the error response with the provided message

DialogResponse::error(string $message, int $code = 404, array $details = []): DialogResponse

Parameters

Name Type Default
$messagerequired string no default value
$code int 404
$details array []

Return type

Kirby\Panel\Response\DialogResponse

Parent class

Kirby\Panel\Response\DialogResponse inherited from Kirby\Panel\Response\JsonResponse