Skip to content

Kirby 6.0.0

SearchResponse::error()

Renders the error response with the provided message

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

Parameters

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

Return type

Kirby\Panel\Response\SearchResponse

Parent class

Kirby\Panel\Response\SearchResponse inherited from Kirby\Panel\Response\JsonResponse