{% deprecated 'The template "' ~ _self ~'" is deprecated since Symfony 4.4, will be removed in 5.0.' %} {{ { 'error': { 'code': status_code, 'message': status_text } }|json_encode|raw }}