Skip to content

Kirby 6.0.0

DropdownResponse::error()

Renders the error response with the provided message

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

Parameters

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

Return type

Kirby\Panel\Response\DropdownResponse

Parent class

Kirby\Panel\Response\DropdownResponse inherited from Kirby\Panel\Response\JsonResponse