$api->responseForException() Creates the response array for an exception. Kirby exceptions will have more information kirby/src/Api/Api.php#L531 $api->responseForException(Throwable $e): array Parameters Name Type Default $e * Throwable – Return type array Parent class Kirby\Api\Api