Make return value similar to error..json.twig