Skip to content

Kirby 6.0.0

DrawerResponse::error()

Renders the error response with the provided message

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

Parameters

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

Return type

Kirby\Panel\Response\DrawerResponse

Parent class

Kirby\Panel\Response\DrawerResponse inherited from Kirby\Panel\Response\JsonResponse