{% set status_code = request_collector ? request_collector.statuscode|default(0) : 0 %} {% set css_class = status_code > 399 ? 'status-error' : status_code > 299 ? 'status-warning' : 'status-success' %} {% if request_collector and request_collector.redirect %} {% set redirect = request_collector.redirect %} {% set link_to_source_code = redirect.controller.class is defined ? redirect.controller.file|file_link(redirect.controller.line) %} {% set redirect_route_name = '@' ~ redirect.route %}
{{ source('@WebProfiler/Icon/alert-circle.svg') }} Error {{ status_code }} {{ request_collector.statusText }}
{% endif %}