Skip to content

Kirby 6.0.0

RequestResponse::error()

Renders the error response with the provided message

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

Parameters

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

Return type

Kirby\Panel\Response\RequestResponse

Parent class

Kirby\Panel\Response\RequestResponse inherited from Kirby\Panel\Response\JsonResponse